feat(frontend): scaffold Flutter Web app with ENSUP home screen
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import "package:flutter/material.dart";
|
||||
import "package:google_fonts/google_fonts.dart";
|
||||
import "ensup_colors.dart";
|
||||
|
||||
/// Thème global : couleurs ENSUP et police de corps Titillium Web.
|
||||
/// Les titres utilisent Darker Grotesque, appliqué directement dans les widgets.
|
||||
ThemeData buildEnsupTheme() {
|
||||
final base = ThemeData(
|
||||
useMaterial3: true,
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: EnsupColors.cyan,
|
||||
primary: EnsupColors.cyan,
|
||||
),
|
||||
scaffoldBackgroundColor: EnsupColors.soft,
|
||||
);
|
||||
|
||||
return base.copyWith(
|
||||
textTheme: GoogleFonts.titilliumWebTextTheme(base.textTheme).apply(
|
||||
bodyColor: EnsupColors.text,
|
||||
displayColor: EnsupColors.text,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user