Skip to content

Commit

Permalink
fix IDE code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Apr 5, 2023
1 parent d403818 commit d5870f9
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions lib/controllers/playlistController.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import 'package:better_player/better_player.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:invidious/controllers/miniPayerController.dart';
import 'package:invidious/controllers/playlistListController.dart';
import 'package:invidious/views/miniPlayer.dart';
import 'package:logging/logging.dart';

import '../globals.dart';
import '../models/playlist.dart';
import '../models/video.dart';
import '../models/videoInList.dart';

class PlaylistController extends GetxController {
Expand Down
3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:get/get.dart';
import 'package:invidious/controllers/homeController.dart';
import 'package:invidious/controllers/miniPayerController.dart';
import 'package:invidious/globals.dart';
import 'package:invidious/views/components/miniPlayerAware.dart';
import 'package:invidious/views/miniPlayer.dart';
Expand Down Expand Up @@ -37,7 +36,7 @@ Future<void> main() async {
debugPrint('[${record.level.name}] [${record.loggerName}] ${record.message}');
});

WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
WidgetsFlutterBinding.ensureInitialized();

db = await DbClient.create();
runApp(const MyApp());
Expand Down
1 change: 0 additions & 1 deletion lib/views/components/videoAddToPlaylistButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class VideoAddToPlaylistButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
ColorScheme colors = Theme.of(context).colorScheme;
return GetBuilder<AddToPlaylistButtonController>(
tag: AddToPlaylistButtonController.tags(videoId ?? ''),
init: AddToPlaylistButtonController(videoId: videoId),
Expand Down
1 change: 0 additions & 1 deletion lib/views/components/videoLikeButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class VideoLikeButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
ColorScheme colors = Theme.of(context).colorScheme;
return GetBuilder<VideoLikeButtonController>(
init: VideoLikeButtonController(videoId: videoId),
tag: VideoLikeButtonController.tags(videoId ?? ''),
Expand Down
1 change: 0 additions & 1 deletion lib/views/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:get/get.dart';
import 'package:invidious/myRouteObserver.dart';
import 'package:invidious/views/components/miniPlayerAware.dart';
import 'package:invidious/views/settings/sponsorBlockSettings.dart';
import 'package:select_dialog/select_dialog.dart';
import 'package:settings_ui/settings_ui.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/views/settings/sponsorBlockSettings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:invidious/controllers/sponsorBlockSettingsController.dart';
import 'package:invidious/models/sponsorSegmentTypes.dart';
import 'package:settings_ui/settings_ui.dart';

import '../components/miniPlayerAware.dart';
import '../settings.dart';

class SponsorBlockSettings extends StatelessWidget {
Expand Down
1 change: 0 additions & 1 deletion lib/views/video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:get/get.dart';
import 'package:invidious/controllers/videoController.dart';
import 'package:invidious/globals.dart';
import 'package:invidious/views/components/miniPlayerAware.dart';
import 'package:invidious/views/components/videoAddToPlaylistButton.dart';
import 'package:invidious/views/components/videoLikeButton.dart';
import 'package:invidious/views/video/innverView.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/views/videoPlayer/miniPlayerControls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:invidious/controllers/miniplayerControlsController.dart';
import 'package:invidious/utils.dart';
import 'package:invidious/views/components/videoLikeButton.dart';

import '../../controllers/miniPayerController.dart';

Expand Down

0 comments on commit d5870f9

Please sign in to comment.