From eac344a67188246860e1144c5c7ed799032f68c5 Mon Sep 17 00:00:00 2001 From: Komek Hayytnazarov Date: Tue, 28 Mar 2023 11:57:57 +0500 Subject: [PATCH] added space under button --- cspell.json | 1 + lib/app/core/lang/tm_tm.dart | 2 +- lib/app/pages/product/screen.dart | 21 ++++++++++----------- lib/app/pages/splash/screen.dart | 1 + 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/cspell.json b/cspell.json index 23a382b..d97703a 100644 --- a/cspell.json +++ b/cspell.json @@ -7,6 +7,7 @@ "dictionaryDefinitions": [], "dictionaries": [], "words": [ + "Appbar", "dili", "fluttericon", "fontello", diff --git a/lib/app/core/lang/tm_tm.dart b/lib/app/core/lang/tm_tm.dart index a5aa240..196a2e5 100644 --- a/lib/app/core/lang/tm_tm.dart +++ b/lib/app/core/lang/tm_tm.dart @@ -125,7 +125,7 @@ const Map tmTM = { 'loading': 'Ýüklenilyär ...', 'payment_unsuccess': 'Töleg geçmedi. soň barlap görüň!', 'approve_lang': 'Dowam et', - 'select_language': 'Dil saýlaň', + 'select_language': 'Dili saýlaň', 'profile': 'Profil', 'discounted_price': 'Arzanladyşdaky harytlar', }; diff --git a/lib/app/pages/product/screen.dart b/lib/app/pages/product/screen.dart index bdcf80f..411d049 100644 --- a/lib/app/pages/product/screen.dart +++ b/lib/app/pages/product/screen.dart @@ -29,15 +29,8 @@ class ProductDetailsPage extends StatelessWidget { child: Scaffold( appBar: CustomAppbarWidget(leading: AppBarBackBtn()), body: SliverAppBarWithTabBar(model: model, pc: pc), - // ListView( - // children: model.type == 'simple' - // ? buildSimpleProductScreen(model) - // : buildConfigurableProductScreen( - // pc, - // ), - // ), bottomNavigationBar: Padding( - padding: const EdgeInsets.symmetric(horizontal: 16.0), + padding: const EdgeInsets.only(left: 16.0, right: 16, bottom: 16.0, top: 8), child: ColoredButton( title: 'add_to_cart'.tr, callback: () => pc.onAddToCart(context, model), @@ -139,7 +132,9 @@ class ProductDetailsPage extends StatelessWidget { decoration: new BoxDecoration( // color: Colors.amberAccent, border: Border.all( - color: option.option == selectedOption.option ? ThemeColor.mainColor : Colors.grey.withOpacity(0.50), + color: option.option == selectedOption.option + ? ThemeColor.mainColor + : Colors.grey.withOpacity(0.50), width: option.option == selectedOption.option ? 2 : 1, ), borderRadius: BorderRadius.circular(8)), @@ -190,7 +185,9 @@ class ProductDetailsPage extends StatelessWidget { child: Container( decoration: new BoxDecoration( border: Border.all( - color: product.id == selectedProduct?.id ? ThemeColor.mainColor : Colors.grey.withOpacity(0.50), + color: product.id == selectedProduct?.id + ? ThemeColor.mainColor + : Colors.grey.withOpacity(0.50), width: product.id == selectedProduct?.id ? 2 : 1, ), borderRadius: BorderRadius.circular(8)), @@ -229,7 +226,9 @@ class ProductDetailsPage extends StatelessWidget { child: Container( decoration: new BoxDecoration( border: Border.all( - color: option.option == selectedSimpleOption?.option ? ThemeColor.mainColor : Colors.grey.withOpacity(0.50), + color: option.option == selectedSimpleOption?.option + ? ThemeColor.mainColor + : Colors.grey.withOpacity(0.50), width: option.option == selectedSimpleOption?.option ? 2 : 1, ), borderRadius: BorderRadius.circular(8)), diff --git a/lib/app/pages/splash/screen.dart b/lib/app/pages/splash/screen.dart index 58c1e4b..eb288f8 100644 --- a/lib/app/pages/splash/screen.dart +++ b/lib/app/pages/splash/screen.dart @@ -66,6 +66,7 @@ class LanguageSplashScreen extends StatelessWidget { callback: controller.onNextBtnTapped, ), ), + SizedBox(height: 20), ], ), ),