Skip to content

Commit

Permalink
flutter format command changed -> dart format .
Browse files Browse the repository at this point in the history
  • Loading branch information
RunTerror committed Feb 12, 2024
1 parent ad1e1e5 commit 461b4e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
architecture: x64
# channel: "stable"
- run: flutter pub get
- run: flutter format --set-exit-if-changed .
- run: dart format . --set-exit-if-changed
- run: flutter analyze .
- run: flutter test

Expand All @@ -41,11 +41,11 @@ jobs:
- uses: subosito/flutter-action@v2
with:
# Temporary fix to failing CI
flutter-version: '3.3.9'
flutter-version: '3.16.4'
architecture: x64
# channel: "stable"
- run: flutter pub get
- run: flutter format --set-exit-if-changed .
- run: dart format . --set-exit-if-changed
- run: flutter analyze .
- run: flutter test
# - run: flutter build apk
Expand Down
3 changes: 2 additions & 1 deletion lib/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import 'package:get_it/get_it.dart';
GetIt locator = GetIt.instance;
final UserConfig? userConfig = locator<UserConfig>();
final NavigationService? navigationService = locator<NavigationService>();
final DataBaseMutationFunctions? databaseFunctions = locator<DataBaseMutationFunctions>();
final DataBaseMutationFunctions? databaseFunctions =
locator<DataBaseMutationFunctions>();
final GraphQLConfig? graphqlConfig = locator<GraphQLConfig>();
final LocalNotification? localNotif = locator<LocalNotification>();
final HiveLocalDb? hiveDb = locator<HiveLocalDb>();
Expand Down
3 changes: 2 additions & 1 deletion lib/services/navigation_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class NavigationService {
GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();

Future<dynamic> pushScreen(String routeName, {dynamic arguments}) {
return navigatorKey.currentState!.pushNamed(routeName, arguments: arguments);
return navigatorKey.currentState!
.pushNamed(routeName, arguments: arguments);
}

Future<dynamic> pushReplacementScreen(String routeName, {dynamic arguments}) {
Expand Down
3 changes: 2 additions & 1 deletion lib/view_model/group_screen_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class GroupViewModel extends BaseModel {
setState(ViewState.busy);
validate = AutovalidateMode.disabled;
databaseFunctions!.init();
final Beacon? beacon = await databaseFunctions!.joinBeacon(enteredPasskey);
final Beacon? beacon =
await databaseFunctions!.joinBeacon(enteredPasskey);
// setState(ViewState.idle);
if (beacon != null) {
hasStarted = DateTime.now()
Expand Down

0 comments on commit 461b4e5

Please sign in to comment.