Skip to content

Commit adfcef5

Browse files
committed
fix: update test imports and apply dart fix for lint issues
- Updated test/helpers/pump_app.dart from vsound to aveditor - Fixed import ordering across codebase - Applied dart fix for lint compliance
1 parent 27ccf72 commit adfcef5

27 files changed

Lines changed: 71 additions & 70 deletions

lib/main_development.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// Use of this source code is governed by a GPL-style license that can be found
33
// in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
6-
import 'package:flutter/services.dart';
7-
import 'package:flutter_native_splash/flutter_native_splash.dart';
8-
import 'package:get/get.dart';
95
import 'package:aveditor/bootstrap.dart';
106
import 'package:aveditor/src/app/app.dart';
117
import 'package:aveditor/src/injection.dart' as di;
128
import 'package:aveditor/src/presentation/presentation.dart';
9+
import 'package:flutter/material.dart';
10+
import 'package:flutter/services.dart';
11+
import 'package:flutter_native_splash/flutter_native_splash.dart';
12+
import 'package:get/get.dart';
1313

1414
Future<void> main() async {
1515
// Ensures that the Flutter binding has been initialized.

lib/main_production.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// Use of this source code is governed by a GPL-style license that can be found
33
// in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
6-
import 'package:flutter/services.dart';
7-
import 'package:flutter_native_splash/flutter_native_splash.dart';
8-
import 'package:get/get.dart';
95
import 'package:aveditor/bootstrap.dart';
106
import 'package:aveditor/src/app/app.dart';
117
import 'package:aveditor/src/injection.dart' as di;
128
import 'package:aveditor/src/presentation/presentation.dart';
9+
import 'package:flutter/material.dart';
10+
import 'package:flutter/services.dart';
11+
import 'package:flutter_native_splash/flutter_native_splash.dart';
12+
import 'package:get/get.dart';
1313

1414
Future<void> main() async {
1515
// Ensures that the Flutter binding has been initialized.

lib/main_staging.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// Use of this source code is governed by a GPL-style license that can be found
33
// in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
6-
import 'package:flutter/services.dart';
7-
import 'package:flutter_native_splash/flutter_native_splash.dart';
8-
import 'package:get/get.dart';
95
import 'package:aveditor/bootstrap.dart';
106
import 'package:aveditor/src/app/app.dart';
117
import 'package:aveditor/src/injection.dart' as di;
128
import 'package:aveditor/src/presentation/presentation.dart';
9+
import 'package:flutter/material.dart';
10+
import 'package:flutter/services.dart';
11+
import 'package:flutter_native_splash/flutter_native_splash.dart';
12+
import 'package:get/get.dart';
1313

1414
Future<void> main() async {
1515
// Ensures that the Flutter binding has been initialized.

lib/src/app/controller/app_controller.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import 'dart:async';
66

7-
import 'package:flutter/services.dart';
8-
import 'package:flutter_native_splash/flutter_native_splash.dart';
9-
import 'package:get/get.dart';
107
import 'package:aveditor/src/config/config.dart';
118
import 'package:aveditor/src/core/core.dart';
129
import 'package:aveditor/src/presentation/presentation.dart';
10+
import 'package:flutter/services.dart';
11+
import 'package:flutter_native_splash/flutter_native_splash.dart';
12+
import 'package:get/get.dart';
1313

1414
class AppController extends GetxController {
1515
AppController({

lib/src/app/view/app.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// Use of this source code is governed by a GPL-style license that can be found
33
// in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
6-
import 'package:get/get.dart';
7-
import 'package:sizer/sizer.dart';
85
import 'package:aveditor/src/app/app.dart';
96
import 'package:aveditor/src/components/components.dart';
107
import 'package:aveditor/src/core/core.dart';
118
import 'package:aveditor/src/presentation/presentation.dart';
9+
import 'package:flutter/material.dart';
10+
import 'package:get/get.dart';
11+
import 'package:sizer/sizer.dart';
1212

1313
class App extends StatelessWidget {
1414
const App({super.key});

lib/src/components/video_thumbnail.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class VideoThumbnail extends StatelessWidget {
2828
if (bytes == null) return const _LoadingGridViewItem();
2929

3030
return InkWell(
31-
overlayColor: MaterialStateProperty.all(Colors.transparent),
31+
overlayColor: WidgetStateProperty.all(Colors.transparent),
3232
highlightColor: Colors.transparent,
3333
onTap: onTap,
3434
child: _LoadedGridViewItem(
@@ -102,7 +102,7 @@ class _LoadedGridViewItem extends StatelessWidget {
102102
),
103103
DecoratedBox(
104104
decoration: BoxDecoration(
105-
color: Theme.of(context).colorScheme.background,
105+
color: Theme.of(context).colorScheme.surface,
106106
border: Border.all(
107107
color: Theme.of(context).colorScheme.secondary,
108108
),

lib/src/config/themes/app_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a GPL-style license that can be found
33
// in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:aveditor/src/config/config.dart';
6+
import 'package:flutter/material.dart';
77

88
/// [AppTheme]
99
///

lib/src/config/themes/dark/dark_theme.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ class DarkTheme {
2626
primaryColorLight: const Color(0xFFF8F3F7),
2727
scaffoldBackgroundColor: const Color(0xFF181818),
2828
cardColor: const Color(0xFF181818),
29-
indicatorColor: const Color(0xB3F8F3F7),
3029
focusColor: const Color(0x66181818),
3130
dividerColor: const Color(0x33F8F3F7),
3231
splashColor: const Color(0x33F8F3F7),
3332
iconTheme: const IconThemeData(color: Color(0xFFF8F3F7)),
34-
appBarTheme: const AppBarTheme(color: Color(0xFF181818)),
33+
appBarTheme: const AppBarTheme(backgroundColor: Color(0xFF181818)),
3534
sliderTheme: SliderThemeData(
3635
activeTrackColor: const Color(0xFFF8F3F7),
3736
inactiveTrackColor: const Color(0xFFF8F3F7),
@@ -54,10 +53,10 @@ class DarkTheme {
5453
),
5554
outlinedButtonTheme: OutlinedButtonThemeData(
5655
style: ButtonStyle(
57-
shape: MaterialStateProperty.all(
56+
shape: WidgetStateProperty.all(
5857
RoundedRectangleBorder(borderRadius: BorderRadius.circular(1)),
5958
),
60-
side: MaterialStateProperty.all(
59+
side: WidgetStateProperty.all(
6160
const BorderSide(color: Color(0xFFF8F3F7)),
6261
),
6362
),
@@ -107,7 +106,7 @@ class DarkTheme {
107106
primary: const Color(0xFF181818),
108107
// Sliding color
109108
secondary: const Color(0xFFF8F3F7),
110-
background: const Color(0xFF181818),
111-
),
109+
surface: const Color(0xFF181818),
110+
), tabBarTheme: const TabBarThemeData(indicatorColor: Color(0xB3F8F3F7)),
112111
);
113112
}

lib/src/config/themes/light/light_theme.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ class LightTheme {
2626
primaryColorLight: const Color(0xFF181818),
2727
scaffoldBackgroundColor: const Color(0xFFF8F3F7),
2828
cardColor: const Color(0xFFF8F3F7),
29-
indicatorColor: const Color(0xB3181818),
3029
focusColor: const Color(0x66F8F3F7),
3130
dividerColor: const Color(0x80181818),
3231
splashColor: const Color(0x33181818),
3332
iconTheme: const IconThemeData(color: Color(0xFF181818)),
34-
appBarTheme: const AppBarTheme(color: Color(0xFFF8F3F7)),
33+
appBarTheme: const AppBarTheme(backgroundColor: Color(0xFFF8F3F7)),
3534
sliderTheme: SliderThemeData(
3635
activeTrackColor: const Color(0xFF181818),
3736
inactiveTrackColor: const Color(0xFF181818),
@@ -54,10 +53,10 @@ class LightTheme {
5453
),
5554
outlinedButtonTheme: OutlinedButtonThemeData(
5655
style: ButtonStyle(
57-
shape: MaterialStateProperty.all(
56+
shape: WidgetStateProperty.all(
5857
RoundedRectangleBorder(borderRadius: BorderRadius.circular(1)),
5958
),
60-
side: MaterialStateProperty.all(
59+
side: WidgetStateProperty.all(
6160
const BorderSide(color: Color(0xFF181818)),
6261
),
6362
),
@@ -107,7 +106,7 @@ class LightTheme {
107106
primary: const Color(0xFFF8F3F7),
108107
// Sliding color
109108
secondary: const Color(0xFF181818),
110-
background: const Color(0xFFF8F3F7),
111-
),
109+
surface: const Color(0xFFF8F3F7),
110+
), tabBarTheme: const TabBarThemeData(indicatorColor: Color(0xB3181818)),
112111
);
113112
}

lib/src/core/l10n/l10n.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import 'package:flutter/widgets.dart';
21
import 'package:aveditor/src/core/core.dart';
2+
import 'package:flutter/widgets.dart';
33

44
export 'app_localizations.dart';
55

0 commit comments

Comments
 (0)