main.dart 834 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. import 'package:flutter_vr/tools/YSTools.dart';
  4. import 'package:flutter_vr/video/YSVideoList.dart';
  5. void main() {
  6. WidgetsFlutterBinding.ensureInitialized();
  7. SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light.copyWith(statusBarColor: Colors.transparent));
  8. AppUtil.V();
  9. runApp(const MyApp());
  10. }
  11. class MyApp extends StatelessWidget {
  12. const MyApp({super.key});
  13. // This widget is the root of your application.
  14. @override
  15. Widget build(BuildContext context) {
  16. return MaterialApp(
  17. title: '笙歌VR',
  18. debugShowCheckedModeBanner: false,
  19. theme: ThemeData(
  20. colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
  21. useMaterial3: true,
  22. ),
  23. home: const YSVideoList(),
  24. );
  25. }
  26. }