🧱 Add basis of tencent rtc
This commit is contained in:
11
lib/pods/database.dart
Normal file
11
lib/pods/database.dart
Normal file
@ -0,0 +1,11 @@
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:island/database/drift_db.dart';
|
||||
|
||||
import 'package:island/database/database.native.dart'
|
||||
if (dart.library.html) 'package:island/database/database.web.dart';
|
||||
|
||||
final databaseProvider = Provider<AppDatabase>((ref) {
|
||||
final db = constructDb();
|
||||
ref.onDispose(() => db.close());
|
||||
return db;
|
||||
});
|
Reference in New Issue
Block a user