diff --git a/android/app/build.gradle b/android/app/build.gradle index 6ebc4d2..538f91f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -51,7 +51,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.didvan.didvanapp" - minSdkVersion 21 + minSdkVersion 24 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/lib/views/home/home_state.dart b/lib/views/home/home_state.dart index a81d4f7..540e806 100644 --- a/lib/views/home/home_state.dart +++ b/lib/views/home/home_state.dart @@ -192,6 +192,11 @@ class HomeState extends CoreProvier { asset: Assets.podcast, link: Routes.podcasts, ), + MenuItemType( + label: 'اینفوگرافی', + asset: Assets.startup, + link: Routes.infography, + ), ]; categories = [ diff --git a/lib/views/home/new_statistic/stock/exchange.dart b/lib/views/home/new_statistic/stock/exchange.dart index a574d40..347acc9 100644 --- a/lib/views/home/new_statistic/stock/exchange.dart +++ b/lib/views/home/new_statistic/stock/exchange.dart @@ -40,7 +40,7 @@ class ExchangeCard extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const DidvanText(" رقم روز کاری جاری"), + const DidvanText("رقم روز کاری جاری"), DidvanText(exchangeContent.data.p) ], ), diff --git a/lib/views/home/new_statistic/stock/total_type3.dart b/lib/views/home/new_statistic/stock/total_type3.dart index d8aa9c5..2d20508 100644 --- a/lib/views/home/new_statistic/stock/total_type3.dart +++ b/lib/views/home/new_statistic/stock/total_type3.dart @@ -87,9 +87,10 @@ class TotalType3Card extends StatelessWidget { ), ), SizedBox( - width: 40, + width: 45, child: Center( child: DidvanText( + overflow: TextOverflow.fade, e.p.toString(), style: Theme.of(context).textTheme.bodySmall, ), diff --git a/lib/views/home/new_statistic/widgets/statistic_cat.dart b/lib/views/home/new_statistic/widgets/statistic_cat.dart index 6965629..775f37c 100644 --- a/lib/views/home/new_statistic/widgets/statistic_cat.dart +++ b/lib/views/home/new_statistic/widgets/statistic_cat.dart @@ -41,7 +41,7 @@ class NewStatisticCategories extends StatelessWidget { (e) => GestureDetector( onTap: () => _onTap(e.id, e.label, context, context), child: Padding( - padding: const EdgeInsets.all(8.0), + padding: const EdgeInsets.all(12.0), child: SizedBox( width: (MediaQuery.of(context).size.width - 40) / 4, child: Column( diff --git a/lib/views/home/widgets/categories.dart b/lib/views/home/widgets/categories.dart index be1ac92..c5dec8d 100644 --- a/lib/views/home/widgets/categories.dart +++ b/lib/views/home/widgets/categories.dart @@ -35,30 +35,33 @@ class MainCategories extends StatelessWidget { .map( (e) => GestureDetector( onTap: () => _onTap(e.link, context), - child: SizedBox( - width: (MediaQuery.of(context).size.width - 40) / 4, - child: Column( - children: [ - Container( - width: 56, - height: 56, - padding: const EdgeInsets.all(8), - decoration: BoxDecoration( - color: Theme.of(context).colorScheme.surface, - borderRadius: DesignConfig.lowBorderRadius, - boxShadow: DesignConfig.defaultShadow, + child: Padding( + padding: const EdgeInsets.all(12.0), + child: SizedBox( + width: (MediaQuery.of(context).size.width - 40) / 4, + child: Column( + children: [ + Container( + width: 56, + height: 56, + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface, + borderRadius: DesignConfig.lowBorderRadius, + boxShadow: DesignConfig.defaultShadow, + ), + child: SvgPicture.asset(e.asset), ), - child: SvgPicture.asset(e.asset), - ), - const SizedBox(height: 4), - DidvanText( - e.label, - color: Theme.of(context).colorScheme.title, - style: Theme.of(context).textTheme.labelSmall, - fontWeight: FontWeight.w600, - ), - const SizedBox(height: 12), - ], + const SizedBox(height: 4), + DidvanText( + e.label, + color: Theme.of(context).colorScheme.title, + style: Theme.of(context).textTheme.labelSmall, + fontWeight: FontWeight.w600, + ), + const SizedBox(height: 12), + ], + ), ), ), ),