Skip to content

Commit 5551a0f

Browse files
authored
Changes Made : Added the keyword await in the getprofile function (#684)
* Changes Made : Added the keyword await in the getprofile function * Removed pubspec.lock from PR
1 parent 8d1c939 commit 5551a0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/app/data/providers/isar_provider.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class IsarDb {
178178
static Future<ProfileModel?> getProfile(String name) async {
179179
final isarProvider = IsarDb();
180180
final db = await isarProvider.db;
181-
final a = db.profileModels.filter().profileNameEqualTo(name).findFirst();
181+
final a = await db.profileModels.filter().profileNameEqualTo(name).findFirst();
182182
print('$a appkle');
183183
return a;
184184
}

lib/app/modules/home/views/home_view.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ class HomeView extends GetView<HomeController> {
443443
Padding(
444444
padding:
445445
EdgeInsets.only(bottom: controller.scalingFactor * 20),
446-
child: ProfileSelect(),
446+
child: const ProfileSelect(),
447447
),
448448
Expanded(
449449
child: GlowingOverscrollIndicator(

0 commit comments

Comments
 (0)