add infography item to main page

This commit is contained in:
mehrdad78 2024-04-11 20:39:14 +03:30
parent f12cf98fd9
commit 4b3d7fb160
6 changed files with 36 additions and 27 deletions

View File

@ -51,7 +51,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.didvan.didvanapp" applicationId "com.didvan.didvanapp"
minSdkVersion 21 minSdkVersion 24
targetSdkVersion 30 targetSdkVersion 30
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName

View File

@ -192,6 +192,11 @@ class HomeState extends CoreProvier {
asset: Assets.podcast, asset: Assets.podcast,
link: Routes.podcasts, link: Routes.podcasts,
), ),
MenuItemType(
label: 'اینفوگرافی',
asset: Assets.startup,
link: Routes.infography,
),
]; ];
categories = [ categories = [

View File

@ -40,7 +40,7 @@ class ExchangeCard extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const DidvanText(" رقم روز کاری جاری"), const DidvanText("رقم روز کاری جاری"),
DidvanText(exchangeContent.data.p) DidvanText(exchangeContent.data.p)
], ],
), ),

View File

@ -87,9 +87,10 @@ class TotalType3Card extends StatelessWidget {
), ),
), ),
SizedBox( SizedBox(
width: 40, width: 45,
child: Center( child: Center(
child: DidvanText( child: DidvanText(
overflow: TextOverflow.fade,
e.p.toString(), e.p.toString(),
style: Theme.of(context).textTheme.bodySmall, style: Theme.of(context).textTheme.bodySmall,
), ),

View File

@ -41,7 +41,7 @@ class NewStatisticCategories extends StatelessWidget {
(e) => GestureDetector( (e) => GestureDetector(
onTap: () => _onTap(e.id, e.label, context, context), onTap: () => _onTap(e.id, e.label, context, context),
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(12.0),
child: SizedBox( child: SizedBox(
width: (MediaQuery.of(context).size.width - 40) / 4, width: (MediaQuery.of(context).size.width - 40) / 4,
child: Column( child: Column(

View File

@ -35,6 +35,8 @@ class MainCategories extends StatelessWidget {
.map( .map(
(e) => GestureDetector( (e) => GestureDetector(
onTap: () => _onTap(e.link, context), onTap: () => _onTap(e.link, context),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: SizedBox( child: SizedBox(
width: (MediaQuery.of(context).size.width - 40) / 4, width: (MediaQuery.of(context).size.width - 40) / 4,
child: Column( child: Column(
@ -62,6 +64,7 @@ class MainCategories extends StatelessWidget {
), ),
), ),
), ),
),
) )
.toList(), .toList(),
); );