add infography item to main page
This commit is contained in:
parent
f12cf98fd9
commit
4b3d7fb160
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -192,6 +192,11 @@ class HomeState extends CoreProvier {
|
|||
asset: Assets.podcast,
|
||||
link: Routes.podcasts,
|
||||
),
|
||||
MenuItemType(
|
||||
label: 'اینفوگرافی',
|
||||
asset: Assets.startup,
|
||||
link: Routes.infography,
|
||||
),
|
||||
];
|
||||
|
||||
categories = [
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class ExchangeCard extends StatelessWidget {
|
|||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const DidvanText(" رقم روز کاری جاری"),
|
||||
const DidvanText("رقم روز کاری جاری"),
|
||||
DidvanText(exchangeContent.data.p)
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue