feat(ui): add themed shell navigation
This commit is contained in:
@ -10,13 +10,13 @@ part 'database.g.dart';
|
||||
class NConnectedDevices extends _$NConnectedDevices {
|
||||
@override
|
||||
Future<List<ConnectedDevice>> build() async {
|
||||
final db = await ref.watch(databaseProvider);
|
||||
return await db.getAllConnectedDevices();
|
||||
final db = ref.watch(databaseProvider);
|
||||
return db.getAllConnectedDevices();
|
||||
}
|
||||
|
||||
Future<Result<int>> addConnectedDevice(
|
||||
ConnectedDevicesCompanion device) async {
|
||||
final db = await ref.watch(databaseProvider);
|
||||
final db = ref.watch(databaseProvider);
|
||||
final res = await db.addConnectedDevice(device);
|
||||
if (res.isOk()) {
|
||||
ref.invalidateSelf();
|
||||
@ -25,7 +25,7 @@ class NConnectedDevices extends _$NConnectedDevices {
|
||||
}
|
||||
|
||||
Future<Result<void>> deleteConnectedDevice(int id) async {
|
||||
final db = await ref.watch(databaseProvider);
|
||||
final db = ref.watch(databaseProvider);
|
||||
final res = await db.deleteConnectedDevice(id);
|
||||
if (res.isOk()) {
|
||||
ref.invalidateSelf();
|
||||
|
||||
Reference in New Issue
Block a user