Files
sight-identification/lib/main.dart

33 lines
721 B
Dart
Raw Normal View History

2026-01-07 16:14:34 +08:00
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'screens/welcome_screen.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
// 设置系统UI样式
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'sight-identification',
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
),
home: const WelcomeScreen(),
debugShowCheckedModeBanner: false,
);
}
}