1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 23:16:09 +00:00

Theme + localize

This commit is contained in:
Yan Maniez 2020-03-01 19:04:48 +01:00
parent ba33b7dbd7
commit 28fd23b2d1
7 changed files with 257 additions and 96 deletions

View file

@ -7,6 +7,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:flutter_svg/flutter_svg.dart';
import '../theme.dart';
class LibraryPage extends StatefulWidget {
LibraryPage({Key key, @required this.id}) : super(key: key);
@ -48,10 +50,8 @@ class _LibraryPageState extends State<LibraryPage> {
@protected
@mustCallSuper
void didChangeDependencies() {
styleSheet = MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
tableColumnWidth: IntrinsicColumnWidth(),
tableCellsPadding: EdgeInsets.all(0.2),
);
super.didChangeDependencies();
styleSheet = mainMarkdownStyleSheet(context);
}
Future<Item> _loadItem() async {