|
|
|
|
@ -18,6 +18,8 @@ import 'package:mohem_flutter_app/provider/dashboard_provider_model.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/ui/landing/widget/app_drawer.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/ui/landing/widget/menus_widget.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/ui/landing/widget/services_widget.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/bottom_sheet.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/mark_attendance_widget.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/shimmer/dashboard_shimmer_widget.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/shimmer/offers_shimmer_widget.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
@ -216,13 +218,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
child: SvgPicture.asset(model.isTimeRemainingInSeconds == 0 ? "assets/images/play.svg" : "assets/images/stop.svg"),
|
|
|
|
|
).onPress(() {
|
|
|
|
|
if (AppState().isArabic(context)) {
|
|
|
|
|
context.setLocale(const Locale("en", "US"));
|
|
|
|
|
} else {
|
|
|
|
|
context.setLocale(const Locale("ar", "SA"));
|
|
|
|
|
}
|
|
|
|
|
// if (AppState().isArabic(context)) {
|
|
|
|
|
// context.setLocale(const Locale("en", "US"));
|
|
|
|
|
// } else {
|
|
|
|
|
// context.setLocale(const Locale("ar", "SA"));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//showMyBottomSheet(context, child: MarkAttendanceWidget(model));
|
|
|
|
|
showMyBottomSheet(context, child: MarkAttendanceWidget(model));
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|