Import netquality 1.1.1
Initial import of the 1.1.1 source tree. Corresponds to Origin commit f9d97e368818acfe7dd44fa9fe5088b9629d0dff. Co-authored-by: yanjiu0721 <yanjiu0721@users.noreply.github.com>
This commit is contained in:
1 parent
948594e7c0
commit
f6ffbde518
93 files changed
+10570
-1
No files matched your search
@@ -0,0 +1,50 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'ui/home_page.dart';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
runApp(const NetQualityApp());
|
||||
}
|
||||
|
||||
class NetQualityApp extends StatelessWidget {
|
||||
const NetQualityApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const paper = Color(0xFFF3F1EC);
|
||||
final scheme = ColorScheme.fromSeed(
|
||||
seedColor: const Color(0xFF1F4E79),
|
||||
surface: paper,
|
||||
);
|
||||
return MaterialApp(
|
||||
title: '网络质量探测',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
colorScheme: scheme,
|
||||
scaffoldBackgroundColor: paper,
|
||||
useMaterial3: true,
|
||||
fontFamilyFallback: const [
|
||||
'NetQualityCJK',
|
||||
'Noto Sans CJK SC',
|
||||
'Noto Sans SC',
|
||||
'PingFang SC',
|
||||
'Microsoft YaHei',
|
||||
'Droid Sans Fallback',
|
||||
],
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
filled: true,
|
||||
fillColor: Color(0xFFFFFCF7),
|
||||
isDense: true,
|
||||
border: OutlineInputBorder(),
|
||||
),
|
||||
cardTheme: const CardThemeData(
|
||||
elevation: 0,
|
||||
color: Color(0xFFFFFCF7),
|
||||
margin: EdgeInsets.zero,
|
||||
),
|
||||
),
|
||||
home: const HomePage(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user