1.0.0 release #31
6 changed files with 15 additions and 25 deletions
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:dynamic_color/dynamic_color.dart';
|
import 'package:dynamic_color/dynamic_color.dart';
|
||||||
|
@ -464,7 +462,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
.onError,
|
.onError,
|
||||||
icon: Icons.delete,
|
icon: Icons.delete,
|
||||||
onPressed: (c) {
|
onPressed: (c) {
|
||||||
showAdaptiveDialog(
|
showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (cx) =>
|
builder: (cx) =>
|
||||||
AlertDialog.adaptive(
|
AlertDialog.adaptive(
|
||||||
|
@ -615,7 +613,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
final availableLanguages = await TessdataApi.getDownloadedData();
|
final availableLanguages = await TessdataApi.getDownloadedData();
|
||||||
if (availableLanguages.isEmpty) {
|
if (availableLanguages.isEmpty) {
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
title: Text(AppLocalizations.of(context).missingOcr),
|
title: Text(AppLocalizations.of(context).missingOcr),
|
||||||
|
@ -648,7 +646,7 @@ class _HomeViewState extends State<HomeView> {
|
||||||
List<bool>.filled(availableLanguages.length, false);
|
List<bool>.filled(availableLanguages.length, false);
|
||||||
selectedLanguages[0] = true;
|
selectedLanguages[0] = true;
|
||||||
|
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => StatefulBuilder(
|
builder: (c) => StatefulBuilder(
|
||||||
builder: (ctx, setState) => AlertDialog.adaptive(
|
builder: (ctx, setState) => AlertDialog.adaptive(
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -208,7 +206,7 @@ class _RecurringEntriesViewState extends State<RecurringEntriesView> {
|
||||||
Theme.of(context).colorScheme.onError,
|
Theme.of(context).colorScheme.onError,
|
||||||
icon: Icons.delete,
|
icon: Icons.delete,
|
||||||
onPressed: (c) {
|
onPressed: (c) {
|
||||||
showDialog(
|
showDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (cx) => AlertDialog.adaptive(
|
builder: (cx) => AlertDialog.adaptive(
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:dynamic_color/dynamic_color.dart';
|
import 'package:dynamic_color/dynamic_color.dart';
|
||||||
|
@ -142,7 +140,7 @@ class _EditCategoriesViewState extends State<EditCategoriesView> {
|
||||||
.getBool("useMaterialYou") ??
|
.getBool("useMaterialYou") ??
|
||||||
false;
|
false;
|
||||||
if (!context.mounted) return;
|
if (!context.mounted) return;
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
actions: [
|
actions: [
|
||||||
|
@ -211,7 +209,7 @@ class _EditCategoriesViewState extends State<EditCategoriesView> {
|
||||||
final controller = TextEditingController(
|
final controller = TextEditingController(
|
||||||
text: selectedWallet!.categories[i].name,
|
text: selectedWallet!.categories[i].name,
|
||||||
);
|
);
|
||||||
showAdaptiveDialog(
|
showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
actions: [
|
actions: [
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import 'package:settings_ui/settings_ui.dart';
|
import 'package:settings_ui/settings_ui.dart';
|
||||||
|
@ -49,7 +47,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
|
||||||
? AppLocalizations.of(context).barChart
|
? AppLocalizations.of(context).barChart
|
||||||
: AppLocalizations.of(context).lineChart,
|
: AppLocalizations.of(context).lineChart,
|
||||||
),
|
),
|
||||||
onPressed: (c) => showAdaptiveDialog(
|
onPressed: (c) => showAdaptiveDialog<void>(
|
||||||
context: c,
|
context: c,
|
||||||
builder: (ctx) => AlertDialog.adaptive(
|
builder: (ctx) => AlertDialog.adaptive(
|
||||||
title: Text(AppLocalizations.of(context).selectType),
|
title: Text(AppLocalizations.of(context).selectType),
|
||||||
|
@ -107,7 +105,7 @@ class _GraphTypeSettingsViewState extends State<GraphTypeSettingsView> {
|
||||||
? AppLocalizations.of(context).barChart
|
? AppLocalizations.of(context).barChart
|
||||||
: AppLocalizations.of(context).lineChart,
|
: AppLocalizations.of(context).lineChart,
|
||||||
),
|
),
|
||||||
onPressed: (c) => showDialog(
|
onPressed: (c) => showAdaptiveDialog<void>(
|
||||||
context: c,
|
context: c,
|
||||||
builder: (ctx) => AlertDialog.adaptive(
|
builder: (ctx) => AlertDialog.adaptive(
|
||||||
title: Text(AppLocalizations.of(context).selectType),
|
title: Text(AppLocalizations.of(context).selectType),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
@ -61,7 +59,7 @@ class _TessdataListViewState extends State<TessdataListView> {
|
||||||
final lang = _tessdata[i].keys.first;
|
final lang = _tessdata[i].keys.first;
|
||||||
if (_tessdata[i][lang]!) {
|
if (_tessdata[i][lang]!) {
|
||||||
// deleting data
|
// deleting data
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => AlertDialog.adaptive(
|
builder: (context) => AlertDialog.adaptive(
|
||||||
title:
|
title:
|
||||||
|
@ -101,8 +99,10 @@ class _TessdataListViewState extends State<TessdataListView> {
|
||||||
showAdaptiveDialog(
|
showAdaptiveDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
title: Text(AppLocalizations.of(context)
|
title: Text(
|
||||||
.langDownloadDialog(lang),),
|
AppLocalizations.of(context)
|
||||||
|
.langDownloadDialog(lang),
|
||||||
|
),
|
||||||
content: StreamBuilder(
|
content: StreamBuilder(
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.connectionState ==
|
if (snapshot.connectionState ==
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// ignore_for_file: inference_failure_on_function_invocation
|
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:currency_picker/currency_picker.dart';
|
import 'package:currency_picker/currency_picker.dart';
|
||||||
|
@ -321,7 +319,7 @@ class _SetupViewState extends State<SetupView> {
|
||||||
.getBool("useMaterialYou") ??
|
.getBool("useMaterialYou") ??
|
||||||
false;
|
false;
|
||||||
if (!context.mounted) return;
|
if (!context.mounted) return;
|
||||||
await showAdaptiveDialog(
|
await showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
actions: [
|
actions: [
|
||||||
|
@ -388,7 +386,7 @@ class _SetupViewState extends State<SetupView> {
|
||||||
final controller = TextEditingController(
|
final controller = TextEditingController(
|
||||||
text: categories[i].name,
|
text: categories[i].name,
|
||||||
);
|
);
|
||||||
showAdaptiveDialog(
|
showAdaptiveDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => AlertDialog.adaptive(
|
builder: (c) => AlertDialog.adaptive(
|
||||||
actions: [
|
actions: [
|
||||||
|
|
Loading…
Reference in a new issue