1.0.0 release #31

Merged
hernik merged 31 commits from dev into main 2024-02-10 16:27:33 +01:00
2 changed files with 81 additions and 74 deletions
Showing only changes of commit 6a25c8289c - Show all commits

View file

@ -51,7 +51,9 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
context: c, context: c,
builder: (ctx) => AlertDialog.adaptive( builder: (ctx) => AlertDialog.adaptive(
title: Text(AppLocalizations.of(context).selectType), title: Text(AppLocalizations.of(context).selectType),
content: Column( content: SizedBox(
height: 80,
child: Column(
children: [ children: [
SizedBox( SizedBox(
width: MediaQuery.of(ctx).size.width, width: MediaQuery.of(ctx).size.width,
@ -98,6 +100,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
), ),
), ),
), ),
),
SettingsTile.navigation( SettingsTile.navigation(
title: Text(AppLocalizations.of(context).monthly), title: Text(AppLocalizations.of(context).monthly),
value: Text( value: Text(
@ -109,7 +112,9 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
context: c, context: c,
builder: (ctx) => AlertDialog.adaptive( builder: (ctx) => AlertDialog.adaptive(
title: Text(AppLocalizations.of(context).selectType), title: Text(AppLocalizations.of(context).selectType),
content: Column( content: SizedBox(
height: 80,
child: Column(
children: [ children: [
SizedBox( SizedBox(
width: MediaQuery.of(ctx).size.width, 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 /// so we can show it to the user
Future<void> loadAllTessdata() async { Future<void> loadAllTessdata() async {
final tessDir = Directory(await FlutterTesseractOcr.getTessdataPath()); final tessDir = Directory(await FlutterTesseractOcr.getTessdataPath());
if (!tessDir.existsSync()) tessDir.createSync(recursive: true);
final d = await TessdataApi.getAvailableData(); final d = await TessdataApi.getAvailableData();
final dataStatus = <Map<String, bool>>[]; final dataStatus = <Map<String, bool>>[];
for (final data in d) { for (final data in d) {