Files
GroundedHelper/frontend/lib/main.dart
alvocool 9c858b8146 Square every corner, enlarge the main surfaces and add a to-do list
Rounded rectangles and round controls are now square across the app; only
status dots, glows, the sun, rings and the breathing circle stay round.
Cards, rows, thumbnails, featured cards, category tiles, the standing card
and the nav are larger. Home gets a quick To-do list kept on the device
(TodoItem in InternalMemory), seeded with sample items in mock mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
2026-11-02 14:50:31 +03:00

59 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'Grounded/about/internal/application/TextType.dart';
import 'Grounded/configs/NotificationServiceConfig.dart';
import 'Grounded/designs/Component.dart';
import 'Grounded/see/splash/Splash.dart';
import 'Grounded/utils/Colors.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await dotenv.load(fileName: ".env");
// Channels are created up front so a full-screen alarm can fire the first
// time a non-negotiable window closes, not the second.
await LocalNotificationEngine.init();
runApp(const GroundedApp());
}
class GroundedApp extends StatelessWidget {
const GroundedApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Grounded',
debugShowCheckedModeBanner: false,
theme: ThemeData(
disabledColor: colorGrey,
scaffoldBackgroundColor: colorPrimaryLight,
dividerColor: colorDivider,
colorScheme: ColorScheme.fromSwatch(
primarySwatch: createMaterialColor(colorPrimaryDark),
).copyWith(error: colorNegative),
dialogTheme: DialogThemeData(
backgroundColor: colorWhite,
elevation: 0,
contentTextStyle: TextStyle(
color: colorGrey2,
fontFamily: getTextType(TextType.Regular),
fontSize: 13,
),
titleTextStyle: TextStyle(
color: colorPrimaryDark,
fontFamily: getTextType(TextType.Bold),
fontSize: 17,
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.zero,
),
),
),
home: const Splash(),
);
}
}