Skip to content

Commit

Permalink
Code organization
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Apr 22, 2021
1 parent 9027023 commit e436069
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 27 deletions.
6 changes: 3 additions & 3 deletions lib/components/atoms/loading_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class LoadingIndicator extends StatelessWidget {

@override
Widget build(BuildContext context) {
return const SpinKitFadingCube(
color: Colors.white24,
size: 75.0,
return SpinKitFadingCube(
color: Theme.of(context).accentColor,
size: 50.0,
);
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:hive_flutter/hive_flutter.dart';
import 'package:oktoast/oktoast.dart';
import 'package:sidekick/app_shell.dart';
import 'package:sidekick/constants.dart';
import 'package:sidekick/models/sidekick_settings.model.dart';
import 'package:sidekick/dto/sidekick_settings.dto.dart';
import 'package:sidekick/services/settings_service.dart';
import 'package:sidekick/theme.dart';
import 'package:sidekick/utils/get_theme_mode.dart';
Expand Down
10 changes: 0 additions & 10 deletions lib/providers/fvm_queue.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,6 @@ class FvmQueueProvider extends StateNotifier<FvmQueue> {
try {
switch (item.action) {
case QueueAction.install:

/// Check if version is installed
/// This is done to avoid same version install for two
/// different channels
// final version =
// ref.read(fvmCacheProvider).getVersion(item.version.name);
// if (version == null) {
// } else {
// notifyError('Version ${item.version.name} is already installed.');
// }
await FVMClient.install(item.version.name);
notify('Version ${item.version.name} has been installed.');
break;
Expand Down
2 changes: 1 addition & 1 deletion lib/providers/settings.provider.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:fvm/fvm.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:sidekick/models/sidekick_settings.model.dart';
import 'package:sidekick/dto/sidekick_settings.dto.dart';
import 'package:sidekick/providers/projects_provider.dart';
import 'package:sidekick/services/settings_service.dart';
import 'package:state_notifier/state_notifier.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/releases_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:sidekick/components/atoms/sliver_app_bar_switcher.dart';
import 'package:sidekick/components/molecules/version_item.dart';
import 'package:sidekick/providers/filterable_releases.provider.dart';
import 'package:sidekick/providers/settings.provider.dart';
import 'package:sidekick/utils/utils.dart';
import 'package:sidekick/utils/helpers.dart';

import '../components/atoms/screen.dart';
import '../components/atoms/typography.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/settings_scenes/settings_section_general.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:settings_ui/settings_ui.dart';
import 'package:sidekick/models/sidekick_settings.model.dart';
import 'package:sidekick/dto/sidekick_settings.dto.dart';
import 'package:sidekick/providers/settings.provider.dart';
import 'package:sidekick/utils/get_theme_mode.dart';
import 'package:sidekick/utils/notify.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import 'package:sidekick/screens/settings_scenes/settings_section_flutter.dart';
import 'package:sidekick/screens/settings_scenes/settings_section_fvm.dart';
import 'package:sidekick/screens/settings_scenes/settings_section_general.dart';
import 'package:sidekick/screens/settings_scenes/settings_section_projects.dart';
import 'package:sidekick/utils/helpers.dart';
import 'package:sidekick/utils/notify.dart';
import 'package:sidekick/utils/utils.dart';

enum NavSection {
general,
Expand Down
8 changes: 0 additions & 8 deletions lib/services/dark_mode_service.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/services/settings_service.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:hive/hive.dart';
import 'package:sidekick/models/sidekick_settings.model.dart';
import 'package:sidekick/dto/sidekick_settings.dto.dart';

// ignore: avoid_classes_with_only_static_members
class SettingsService {
Expand Down
File renamed without changes.

0 comments on commit e436069

Please sign in to comment.