fix: settings style

This commit is contained in:
Matyáš Caras 2024-02-10 16:00:15 +01:00
parent d7a8233f6b
commit 6a25c8289c
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6
2 changed files with 81 additions and 74 deletions

View file

@ -51,7 +51,9 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
context: c,
builder: (ctx) => AlertDialog.adaptive(
title: Text(AppLocalizations.of(context).selectType),
content: Column(
content: SizedBox(
height: 80,
child: Column(
children: [
SizedBox(
width: MediaQuery.of(ctx).size.width,
@ -98,6 +100,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
),
),
),
),
SettingsTile.navigation(
title: Text(AppLocalizations.of(context).monthly),
value: Text(
@ -109,7 +112,9 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
context: c,
builder: (ctx) => AlertDialog.adaptive(
title: Text(AppLocalizations.of(context).selectType),
content: Column(
content: SizedBox(
height: 80,
child: Column(
children: [
SizedBox(
width: MediaQuery.of(ctx).size.width,
@ -156,6 +161,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
),
),
),
),
],
),
],

View file

@ -152,6 +152,7 @@ class _TessdataListViewState extends State<TessdataListView> {
/// so we can show it to the user
Future<void> loadAllTessdata() async {
final tessDir = Directory(await FlutterTesseractOcr.getTessdataPath());
if (!tessDir.existsSync()) tessDir.createSync(recursive: true);
final d = await TessdataApi.getAvailableData();
final dataStatus = <Map<String, bool>>[];
for (final data in d) {