mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 15:36:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			No EOL
		
	
	
		
			1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			No EOL
		
	
	
		
			1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter/material.dart';
 | |
| import 'package:flutter_markdown/flutter_markdown.dart';
 | |
| 
 | |
| ThemeData mainTheme() {
 | |
|   return ThemeData(
 | |
|     primarySwatch: Colors.deepOrange,
 | |
|     appBarTheme: AppBarTheme(
 | |
|       color: Colors.white,
 | |
|       iconTheme: IconThemeData(color: Colors.black),
 | |
|       textTheme: TextTheme(
 | |
|           headline6: TextStyle(fontSize: 28.0, color: Colors.black, fontWeight: FontWeight.bold, fontFamily: 'Cinzel')),
 | |
|     ),
 | |
|     brightness: Brightness.light,
 | |
|     primaryColor: Colors.lightBlue[800],
 | |
|     accentColor: Colors.cyan[600],
 | |
|     fontFamily: 'LinuxLibertine',
 | |
|     textTheme: TextTheme(
 | |
|       headline5: TextStyle(fontSize: 28.0, fontWeight: FontWeight.bold, fontFamily: 'Cinzel'),
 | |
|       headline6: TextStyle(fontSize: 22.0, fontStyle: FontStyle.normal),
 | |
|       bodyText2: TextStyle(fontSize: 16.0),
 | |
|     ),
 | |
|   );
 | |
| }
 | |
| 
 | |
| MarkdownStyleSheet mainMarkdownStyleSheet(BuildContext context) {
 | |
|   return MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
 | |
|     tableColumnWidth: IntrinsicColumnWidth(),
 | |
|     tableCellsPadding: EdgeInsets.all(0.2),
 | |
|   );
 | |
| } | 
