From fc7bdc9aeb6f40d855fb49ffc1282fdc8215ce33 Mon Sep 17 00:00:00 2001 From: meet2711 Date: Thu, 20 Jun 2024 17:34:19 +0530 Subject: [PATCH] button fixed --- .../pages/deposit/depositScreen.dart | 2 +- .../presentation/pages/deposit/preview.dart | 89 ++++++++++--------- .../widgets/deposit_pay_method_section.dart | 12 ++- 3 files changed, 54 insertions(+), 49 deletions(-) diff --git a/lib/features/MainScreens/Wallet/presentation/pages/deposit/depositScreen.dart b/lib/features/MainScreens/Wallet/presentation/pages/deposit/depositScreen.dart index 8f0e17e..fed324e 100644 --- a/lib/features/MainScreens/Wallet/presentation/pages/deposit/depositScreen.dart +++ b/lib/features/MainScreens/Wallet/presentation/pages/deposit/depositScreen.dart @@ -22,7 +22,7 @@ class _DepositScreenState extends State { int selectedIndex = 0; @override Widget build(BuildContext context) { - final radioBloc = context.read(); + context.read(); return Scaffold( backgroundColor: Colors.white, appBar: AppBar( diff --git a/lib/features/MainScreens/Wallet/presentation/pages/deposit/preview.dart b/lib/features/MainScreens/Wallet/presentation/pages/deposit/preview.dart index c86df0f..82b2e28 100644 --- a/lib/features/MainScreens/Wallet/presentation/pages/deposit/preview.dart +++ b/lib/features/MainScreens/Wallet/presentation/pages/deposit/preview.dart @@ -362,51 +362,58 @@ class _DepositPreviewState extends State { ) ], ), - GestureDetector( - onTap: () { - goRouter.pop(); - goRouter.pop(); - }, - child: Container( - margin: const EdgeInsets.all(10.0), - height: 65.h, - width: double.infinity, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(22.r), - color: const Color(0xFF004717), - ), - child: Padding( - padding: const EdgeInsets.symmetric(vertical: 20.0), - child: Center( - child: Text( - AppText.submitDeposit, - style: GoogleFonts.dmSans( - color: Colors.white, - fontSize: 14.sp, - fontWeight: FontWeight.w700, - ), - ), - ), - ), - ), - ), - const Gap(10), - GestureDetector( - onTap: () { - goRouter.pop(); - }, - child: Center( - child: TextWidget().text14W700( - AppText.back, - clr: const Color(0xFF363636), - textDecoration: TextDecoration.underline, - ), - ), - ), ], ), ), ), + bottomNavigationBar: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + GestureDetector( + onTap: () { + goRouter.pop(); + goRouter.pop(); + }, + child: Container( + margin: const EdgeInsets.all(10.0), + height: 65.h, + width: double.infinity, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(22.r), + color: const Color(0xFF004717), + ), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 20.0), + child: Center( + child: Text( + AppText.submitDeposit, + style: GoogleFonts.dmSans( + color: Colors.white, + fontSize: 14.sp, + fontWeight: FontWeight.w700, + ), + ), + ), + ), + ), + ), + const Gap(10), + GestureDetector( + onTap: () { + goRouter.pop(); + }, + child: Center( + child: TextWidget().text14W700( + AppText.back, + clr: const Color(0xFF363636), + textDecoration: TextDecoration.underline, + ), + ), + ), + const Gap(20), + ], + ), ); } } diff --git a/lib/features/MainScreens/Wallet/presentation/widgets/deposit_pay_method_section.dart b/lib/features/MainScreens/Wallet/presentation/widgets/deposit_pay_method_section.dart index 42dad10..d9286dc 100644 --- a/lib/features/MainScreens/Wallet/presentation/widgets/deposit_pay_method_section.dart +++ b/lib/features/MainScreens/Wallet/presentation/widgets/deposit_pay_method_section.dart @@ -112,11 +112,6 @@ class DepositPayMethodSection extends StatelessWidget { ], ), ), - // const Icon( - // Icons.arrow_forward, - // color: Colors.grey, - // size: 15, - // ) ], ), ], @@ -165,6 +160,7 @@ class DepositPayMethodSection extends StatelessWidget { ], ), child: Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( padding: const EdgeInsets.all(12), @@ -201,8 +197,10 @@ class DepositPayMethodSection extends StatelessWidget { Padding( padding: const EdgeInsets.all(12.0), child: TextWidget().text14W500( - AppText.instantTransferFundsApplePayText, - clr: AppColor.textLabelColor), + AppText.instantTransferFundsApplePayText, + clr: AppColor.textLabelColor, + txtAlign: TextAlign.start, + ), ), const Gap(12), ],