add infography item to main page
This commit is contained in:
parent
f12cf98fd9
commit
4b3d7fb160
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 = [
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -35,30 +35,33 @@ class MainCategories extends StatelessWidget {
|
||||||
.map(
|
.map(
|
||||||
(e) => GestureDetector(
|
(e) => GestureDetector(
|
||||||
onTap: () => _onTap(e.link, context),
|
onTap: () => _onTap(e.link, context),
|
||||||
child: SizedBox(
|
child: Padding(
|
||||||
width: (MediaQuery.of(context).size.width - 40) / 4,
|
padding: const EdgeInsets.all(12.0),
|
||||||
child: Column(
|
child: SizedBox(
|
||||||
children: [
|
width: (MediaQuery.of(context).size.width - 40) / 4,
|
||||||
Container(
|
child: Column(
|
||||||
width: 56,
|
children: [
|
||||||
height: 56,
|
Container(
|
||||||
padding: const EdgeInsets.all(8),
|
width: 56,
|
||||||
decoration: BoxDecoration(
|
height: 56,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
padding: const EdgeInsets.all(8),
|
||||||
borderRadius: DesignConfig.lowBorderRadius,
|
decoration: BoxDecoration(
|
||||||
boxShadow: DesignConfig.defaultShadow,
|
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(
|
||||||
const SizedBox(height: 4),
|
e.label,
|
||||||
DidvanText(
|
color: Theme.of(context).colorScheme.title,
|
||||||
e.label,
|
style: Theme.of(context).textTheme.labelSmall,
|
||||||
color: Theme.of(context).colorScheme.title,
|
fontWeight: FontWeight.w600,
|
||||||
style: Theme.of(context).textTheme.labelSmall,
|
),
|
||||||
fontWeight: FontWeight.w600,
|
const SizedBox(height: 12),
|
||||||
),
|
],
|
||||||
const SizedBox(height: 12),
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue