| 1234567891011121314151617181920212223242526272829303132333435 |
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:flutter_easyloading/flutter_easyloading.dart';
- import 'package:prime_chat/screens/InitScreen.dart';
- void main() {
- WidgetsFlutterBinding.ensureInitialized();
- // 强制竖屏
- SystemChrome.setPreferredOrientations([
- DeviceOrientation.portraitUp,
- DeviceOrientation.portraitDown
- ]);
- runApp(const MyApp());
- }
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- theme: ThemeData(
- primarySwatch: Colors.blue,
- appBarTheme: const AppBarTheme(
- color: Colors.black12,
- titleTextStyle: TextStyle(color: Colors.black, fontSize: 18, fontWeight: FontWeight.w500),
- elevation: 0,
- )
- ),
- home: const InitScreen(),
- );
- }
- }
|