import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';

import 'package:mini_tias/app.dart';
import 'package:mini_tias/providers/camera_provider.dart';
import 'package:mini_tias/providers/diagnostics_provider.dart';
import 'package:mini_tias/providers/gallery_provider.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

  runApp(
    MultiProvider(
      providers: [
        ChangeNotifierProvider(create: (_) => CameraProvider()),
        ChangeNotifierProvider(create: (_) => GalleryProvider()),
        ChangeNotifierProvider(create: (_) => DiagnosticsProvider()),
      ],
      child: const MiniTiasApp(),
    ),
  );
}
