Files
GroundedHelper/frontend/lib/main.dart
alvocool d3431ca5de Switch to Inter, round the corners softly and make the nav switch tabs
Inter replaces General Sans (Inter Display for titles and big numbers).
Corners come back from before the squaring commit, scaled to a soft set
(16 cards, 14 buttons, 12 rows, 8 chips) and applied to the screens built
since. The nav is now a cluster of round frosted buttons that switches
Today, Routines, Goals, Groups and Progress in place inside Home: no
pushed pages, no back arrows, and Android back returns to Today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
2026-11-09 07:08:46 +03:00

64 lines
2.0 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.circular(14),
),
),
// Material 3 rounds sheet tops by default; the app is square.
bottomSheetTheme: const BottomSheetThemeData(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(20))),
),
),
home: const Splash(),
);
}
}