mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +00:00 
			
		
		
		
	Stylesheet
This commit is contained in:
		
							parent
							
								
									512adf99d8
								
							
						
					
					
						commit
						4b51989349
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		|  | @ -14,6 +14,8 @@ class PCEditorPage extends StatefulWidget { | |||
| } | ||||
| 
 | ||||
| class _PCEditorPageState extends State<PCEditorPage> { | ||||
|   MarkdownStyleSheet styleSheet; | ||||
| 
 | ||||
|   RaceItem _race; | ||||
|   SubRaceItem _subRace; | ||||
|   List<RaceItem> _races; | ||||
|  | @ -33,6 +35,13 @@ class _PCEditorPageState extends State<PCEditorPage> { | |||
|     _initBackgrounds(); | ||||
|   } | ||||
| 
 | ||||
|   @protected | ||||
|   @mustCallSuper | ||||
|   void didChangeDependencies() { | ||||
|     super.didChangeDependencies(); | ||||
|     styleSheet = mainMarkdownStyleSheet(context); | ||||
|   } | ||||
| 
 | ||||
|   void _initRaces() async { | ||||
|     var races = await loadRaces(); | ||||
|     setState(() { | ||||
|  | @ -99,7 +108,7 @@ class _PCEditorPageState extends State<PCEditorPage> { | |||
|   Widget _buildMarkdown(String markdown) { | ||||
|     return MarkdownBody( | ||||
|       data: markdown ?? "", | ||||
|       styleSheet: mainMarkdownStyleSheet(context), | ||||
|       styleSheet: styleSheet, | ||||
|       onTapLink: (link) => Navigator.push( | ||||
|         context, | ||||
|         MaterialPageRoute(builder: (context) => LibraryPage(id: link)), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez