mirrored_repositories/responsive_flutter_user_profile_app_WEB-MOBILE/flutter_user_profile_app
import 'package:flutter/material.dart';
import 'package:flutter_user_profile_app/user_shared_preferences.dart';

///
import '../view/home.dart';
import '../view/moblie_body.dart';
import '../view/web_body.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await UserSharedPreferences.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter User Profile App UI',
      theme: ThemeData(
          textTheme: const TextTheme(
        headline1: TextStyle(
          fontSize: 30,
          color: Colors.black,
          fontWeight: FontWeight.w500,
        ),
        headline2: TextStyle(
          fontSize: 17,
          fontWeight: FontWeight.w300,
          color: Colors.grey,
        ),
        headline3: TextStyle(
          fontSize: 14,
          fontWeight: FontWeight.w300,
          color: Colors.grey,
        ),
      )),
      home: Home(
        mobile: const MobileBody(),
        web: const WebBody(),
      ),
    );
  }
}
