|
|
|
|
@ -530,49 +530,49 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
|
children: [
|
|
|
|
|
ServicesWidget(),
|
|
|
|
|
context.watch<MarathonProvider>().isLoading ? const MarathonBannerShimmer().paddingAll(20) : const MarathonBanner().paddingOnly(left: 21, right: 21, bottom: 8, top: 8),
|
|
|
|
|
context.watch<MarathonProvider>().isTutorialLoading
|
|
|
|
|
? const MarathonBannerShimmer().paddingAll(20)
|
|
|
|
|
: Container(
|
|
|
|
|
padding: EdgeInsets.only(bottom: 12, top: 12),
|
|
|
|
|
margin: EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 8),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: MyColors.backgroundBlackColor,
|
|
|
|
|
borderRadius: BorderRadius.circular(20),
|
|
|
|
|
border: Border.all(color: MyColors.lightGreyEDColor, width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Tutorial:",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
fontStyle: FontStyle.italic,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: MyColors.white.withOpacity(0.83),
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
context.read<MarathonProvider>().tutorial?.tutorialName ?? "",
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontStyle: FontStyle.italic,
|
|
|
|
|
fontSize: 19,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
height: 32 / 22,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).onPress(() {
|
|
|
|
|
checkERMChannel();
|
|
|
|
|
// Navigator.pushNamed(context, AppRoutes.marathonTutorialScreen);
|
|
|
|
|
}),
|
|
|
|
|
// context.watch<MarathonProvider>().isTutorialLoading
|
|
|
|
|
// ? const MarathonBannerShimmer().paddingAll(20)
|
|
|
|
|
// : Container(
|
|
|
|
|
// padding: EdgeInsets.only(bottom: 12, top: 12),
|
|
|
|
|
// margin: EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 8),
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// color: MyColors.backgroundBlackColor,
|
|
|
|
|
// borderRadius: BorderRadius.circular(20),
|
|
|
|
|
// border: Border.all(color: MyColors.lightGreyEDColor, width: 1),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
// children: [
|
|
|
|
|
// Text(
|
|
|
|
|
// "Tutorial:",
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontSize: 11,
|
|
|
|
|
// fontStyle: FontStyle.italic,
|
|
|
|
|
// fontWeight: FontWeight.w600,
|
|
|
|
|
// color: MyColors.white.withOpacity(0.83),
|
|
|
|
|
// letterSpacing: -0.4,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Text(
|
|
|
|
|
// context.read<MarathonProvider>().tutorial?.tutorialName ?? "",
|
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontStyle: FontStyle.italic,
|
|
|
|
|
// fontSize: 19,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// color: MyColors.white,
|
|
|
|
|
// height: 32 / 22,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ).onPress(() {
|
|
|
|
|
// checkERMChannel();
|
|
|
|
|
// // Navigator.pushNamed(context, AppRoutes.marathonTutorialScreen);
|
|
|
|
|
// }),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|