1
0
forked from firka/firka

debug: update throw exception

use a nested isar txn, which can trigger the error popup
This commit is contained in:
2025-09-16 21:29:32 +02:00
parent 8d934dd0f8
commit e616893ad2

View File

@@ -130,8 +130,10 @@ class _DebugScreen extends FirkaState<DebugScreen> {
),
const SizedBox(height: 20),
ElevatedButton(
onPressed: () {
throw 0 / 0;
onPressed: () async {
await widget.data.isar.writeTxn(() async {
await widget.data.isar.writeTxn(() async {});
});
},
child: const Text('Throw Exception'),
),