Initialize Android physical interfaces and preserve macOS scoped routes. Add redacted diagnostics, default DNS, ordered auto-save, simplified controls, scanner rotation settings, and native regression coverage. Restore vendored build sources and document validation and stability checks.
40 lines
1.1 KiB
Dart
40 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'features/lab_screen.dart';
|
|
|
|
class MeshPortApp extends StatelessWidget {
|
|
const MeshPortApp({super.key});
|
|
@override
|
|
Widget build(BuildContext context) => MaterialApp(
|
|
title: 'MeshPort',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: meshPortTheme(),
|
|
home: const LabScreen(
|
|
initializeNative: !bool.fromEnvironment('MESHPORT_UI_PREVIEW'),
|
|
),
|
|
);
|
|
}
|
|
|
|
ThemeData meshPortTheme() => ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: const Color(0xff087d8e),
|
|
surface: const Color(0xfffaf8f4),
|
|
),
|
|
scaffoldBackgroundColor: const Color(0xfffaf8f4),
|
|
inputDecorationTheme: const InputDecorationTheme(
|
|
border: OutlineInputBorder(),
|
|
isDense: false,
|
|
contentPadding: EdgeInsets.symmetric(horizontal: 16, vertical: 18),
|
|
helperMaxLines: 3,
|
|
errorMaxLines: 3,
|
|
),
|
|
cardTheme: CardThemeData(
|
|
elevation: 0,
|
|
color: Colors.white,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(14),
|
|
side: const BorderSide(color: Color(0xffe4e0d9)),
|
|
),
|
|
),
|
|
);
|