2729ab897f
Widgets read tokens via Theme.of(ctx).extension<FabledSwordTheme>(). Material 3 ColorScheme bound to FabledSword tokens. Body text uses GoogleFonts.interTextTheme() so the fonts work without bundling .ttf files (offline-from-cold-launch is a separate question once #357 lands).
19 lines
394 B
Dart
19 lines
394 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'theme/theme_data.dart';
|
|
|
|
class MinstrelApp extends StatelessWidget {
|
|
const MinstrelApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Minstrel',
|
|
theme: buildThemeData(),
|
|
home: const Scaffold(
|
|
body: Center(child: Text('Minstrel — scaffold')),
|
|
),
|
|
);
|
|
}
|
|
}
|