import 'package:flutter/material.dart';
import 'package:gymlink_module_web/main_mobile.dart';
import 'package:gymlink_module_web/pages/main.dart';
import 'package:gymlink_module_web/providers/main.dart';
import 'package:provider/provider.dart';

class MyAppStateMobile extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Consumer<GymLinkProvider>(
      builder: (context, provider, __) => MaterialApp(
        title: 'GymLink Module',
        theme: provider.theme,
        debugShowCheckedModeBanner: false,
        home: MainPage(isLoading: provider.isLoading),
      ),
    );
  }
}
