|
|
|
@ -169,11 +169,14 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
9.height,
|
|
|
|
|
CountdownTimer(
|
|
|
|
|
endTime: model.endTime,
|
|
|
|
|
onEnd: null,
|
|
|
|
|
endWidget: "00:00:00".toText14(color: Colors.white, isBold: true),
|
|
|
|
|
textStyle: const TextStyle(color: Colors.white, fontSize: 14, letterSpacing: -0.48, fontWeight: FontWeight.bold),
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: TextDirection.ltr,
|
|
|
|
|
child: CountdownTimer(
|
|
|
|
|
endTime: model.endTime,
|
|
|
|
|
onEnd: null,
|
|
|
|
|
endWidget: "00:00:00".toText14(color: Colors.white, isBold: true),
|
|
|
|
|
textStyle: const TextStyle(color: Colors.white, fontSize: 14, letterSpacing: -0.48, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
LocaleKeys.timeLeftToday.tr().toText12(color: Colors.white),
|
|
|
|
|
9.height,
|
|
|
|
@ -206,16 +209,18 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
.toText14(color: Colors.white, isBold: true),
|
|
|
|
|
4.height,
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(left: 12),
|
|
|
|
|
).paddingOnly(left: 12, right: 12),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: AppState().isArabic(context) ? 6 : 0),
|
|
|
|
|
width: 45,
|
|
|
|
|
height: 45,
|
|
|
|
|
padding: const EdgeInsets.only(left: 14, right: 14),
|
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Color(0xff259EA4),
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
bottomRight: Radius.circular(15),
|
|
|
|
|
bottomRight: AppState().isArabic(context) ? Radius.circular(0) : Radius.circular(15),
|
|
|
|
|
bottomLeft: AppState().isArabic(context) ? Radius.circular(15) : Radius.circular(0),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: SvgPicture.asset(model.isTimeRemainingInSeconds == 0 ? "assets/images/play.svg" : "assets/images/stop.svg"),
|
|
|
|
@ -360,7 +365,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
drawer: SafeArea(
|
|
|
|
|
child: AppDrawer(),
|
|
|
|
|
child: AppDrawer(onLanguageChange: _onRefresh),
|
|
|
|
|
),
|
|
|
|
|
bottomNavigationBar: SizedBox(
|
|
|
|
|
height: Platform.isAndroid ? 70 : 100,
|
|
|
|
|