2 Commits

Author SHA1 Message Date
16edc19638 Update dependency dart to ^3.8.2
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2025-07-21 00:16:58 +00:00
365d7589b1 Force refresh of expenses editor
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-20 19:55:18 +02:00
3 changed files with 12 additions and 3 deletions

View File

@@ -36,8 +36,8 @@ class ScanScreen extends HookConsumerWidget {
restartScan() async { restartScan() async {
try { try {
final val = ref.refresh(_scanDocumentProvider); ref.invalidate(_scanDocumentProvider);
Logger.root.info("Load again startup result: $val"); Logger.root.info("Load again startup");
} catch (e, s) { } catch (e, s) {
Logger.root.shout("Failed to try again startup loading! $e $s"); Logger.root.shout("Failed to try again startup loading! $e $s");
} }

View File

@@ -40,6 +40,15 @@ class ExpenseEditor extends HookConsumerWidget {
final (:pending, :snapshot, :hasError) = useAsyncTask(); final (:pending, :snapshot, :hasError) = useAsyncTask();
// Force refresh of field if required
final previousData = useState<BaseExpenseInfo?>(null);
if (initialData != previousData.value) {
previousData.value = initialData;
labelController.text = initialData?.label ?? "";
costController.text = initialData?.cost.toString() ?? "";
timeController.value = initialData?.time ?? DateTime.now();
}
// Clear cost value // Clear cost value
handleClearCost() { handleClearCost() {
costController.text = ""; costController.text = "";

View File

@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.2
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions