|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:responsive_builder/responsive_builder.dart';
|
|
|
|
|
import 'package:smartfit_app_mobile/modele/user.dart';
|
|
|
|
|
import 'package:smartfit_app_mobile/view/home/no_activity_view.dart';
|
|
|
|
|
import 'package:smartfit_app_mobile/view/map/mobile/mobile_my_map.dart';
|
|
|
|
|
import 'package:smartfit_app_mobile/view/map/web/web_my_map.dart';
|
|
|
|
|
import 'package:smartfit_app_mobile/view/profile/profile_view.dart';
|
|
|
|
@ -18,8 +19,8 @@ class _MyMapState extends State<MyMap> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return context.watch<User>().listActivity.isEmpty
|
|
|
|
|
? ScreenTypeLayout.builder(
|
|
|
|
|
mobile: (_) => const ProfileView(),
|
|
|
|
|
desktop: (_) => const ProfileView(),
|
|
|
|
|
mobile: (_) => const NoActivityView(),
|
|
|
|
|
desktop: (_) => const NoActivityView(),
|
|
|
|
|
)
|
|
|
|
|
: ScreenTypeLayout.builder(
|
|
|
|
|
mobile: (_) => const MobileMyMaps(),
|
|
|
|
|