2020-02-09 13:29:09 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:flutter_downloader/flutter_downloader.dart';
|
2020-02-11 14:48:11 +01:00
|
|
|
import 'package:tsacdop/home/appbar/addpodcast.dart';
|
|
|
|
import 'package:tsacdop/class/audiostate.dart';
|
|
|
|
import 'package:tsacdop/class/importompl.dart';
|
2020-02-09 13:29:09 +01:00
|
|
|
|
|
|
|
void main() async {
|
|
|
|
runApp(
|
|
|
|
MultiProvider(
|
|
|
|
providers: [
|
|
|
|
ChangeNotifierProvider(create: (context) => Urlchange()),
|
2020-02-11 14:01:57 +01:00
|
|
|
ChangeNotifierProvider(create: (context) => ImportOmpl()),
|
2020-02-09 13:29:09 +01:00
|
|
|
],
|
|
|
|
child: MyApp(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await FlutterDownloader.initialize();
|
|
|
|
await FlutterStatusbarcolor.setStatusBarColor(Colors.grey[100]);
|
|
|
|
await FlutterStatusbarcolor.setNavigationBarColor(Colors.grey[100]);
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
|
|
|
debugShowCheckedModeBanner: false,
|
|
|
|
title: 'TsacDop',
|
|
|
|
theme: ThemeData(
|
|
|
|
primaryColor: Colors.white,
|
|
|
|
),
|
|
|
|
home: MyHomePage(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|