mirror of
https://github.com/stonega/tsacdop
synced 2024-12-16 10:22:23 +01:00
36 lines
959 B
Dart
36 lines
959 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:flutter_downloader/flutter_downloader.dart';
|
|
import 'addpodcast.dart';
|
|
import 'class/audiostate.dart';
|
|
|
|
void main() async {
|
|
runApp(
|
|
MultiProvider(
|
|
providers: [
|
|
ChangeNotifierProvider(create: (context) => Urlchange()),
|
|
],
|
|
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(),
|
|
);
|
|
}
|
|
}
|