Skip to content

Commit 932bfb6

Browse files
committed
Perform flutter analyze
1 parent 8f09bc0 commit 932bfb6

File tree

4 files changed

+18
-28
lines changed

4 files changed

+18
-28
lines changed

analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ linter:
7575
- omit_local_variable_types
7676
- only_throw_errors
7777
- overridden_fields
78-
- package_api_docs
7978
- package_names
8079
- package_prefixed_library_names
8180
- prefer_adjacent_string_concatenation

lib/theme/style.dart

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Style {
2121
);
2222
}
2323

24+
// ignore: unused_element
2425
static ElevatedButtonThemeData get _customElevatedButtonTheme {
2526
return ElevatedButtonThemeData(
2627
style: ElevatedButton.styleFrom(
@@ -36,6 +37,7 @@ class Style {
3637
);
3738
}
3839

40+
// ignore: unused_element
3941
static OutlinedButtonThemeData get _customOutlinedButtonTheme {
4042
return OutlinedButtonThemeData(
4143
style: OutlinedButton.styleFrom(
@@ -51,6 +53,7 @@ class Style {
5153
);
5254
}
5355

56+
// ignore: unused_element
5457
static TextButtonThemeData get _customTextButtonTheme {
5558
return TextButtonThemeData(
5659
style: TextButton.styleFrom(
@@ -63,6 +66,7 @@ class Style {
6366
);
6467
}
6568

69+
// ignore: unused_element
6670
static InputDecorationTheme get _inputDecorationTheme {
6771
return InputDecorationTheme(
6872
prefixIconColor: const Color(0xff999999),
@@ -121,11 +125,9 @@ class Style {
121125
errorContainer: Color(0xFF93000A),
122126
onError: Color(0xFF690005),
123127
onErrorContainer: Color(0xFFFFDAD6),
124-
background: Color(0xFF191C1A),
125-
onBackground: Color(0xFFE1E3E0),
126128
surface: Color(0xFF191C1A),
127129
onSurface: Color(0xFFE1E3E0),
128-
surfaceVariant: Color(0xFF404944),
130+
surfaceContainerHighest: Color(0xFF404944),
129131
onSurfaceVariant: Color(0xFFBFC9C2),
130132
outline: Color(0xFF89938D),
131133
onInverseSurface: Color(0xFF191C1A),
@@ -159,11 +161,9 @@ class Style {
159161
errorContainer: Color(0xFFFFDAD6),
160162
onError: Color(0xFFFFFFFF),
161163
onErrorContainer: Color(0xFF410002),
162-
background: Color(0xFFFFFBFF),
163-
onBackground: Color(0xFF201B17),
164164
surface: Color(0xFFFFFBFF),
165165
onSurface: Color(0xFF201B17),
166-
surfaceVariant: Color(0xFFF3DFD1),
166+
surfaceContainerHighest: Color(0xFFF3DFD1),
167167
onSurfaceVariant: Color(0xFF51443B),
168168
outline: Color(0xFF837469),
169169
onInverseSurface: Color(0xFFFAEFE8),
@@ -197,11 +197,9 @@ class Style {
197197
errorContainer: Color(0xFFFFDAD6),
198198
onError: Color(0xFFFFFFFF),
199199
onErrorContainer: Color(0xFF410002),
200-
background: Color(0xFFFFFBFF),
201-
onBackground: Color(0xFF201B17),
202200
surface: Color(0xFFFFFBFF),
203201
onSurface: Color(0xFF201B17),
204-
surfaceVariant: Color(0xFFF3DFD1),
202+
surfaceContainerHighest: Color(0xFFF3DFD1),
205203
onSurfaceVariant: Color(0xFF51443B),
206204
outline: Color(0xFF837469),
207205
onInverseSurface: Color(0xFFFAEFE8),
@@ -235,11 +233,9 @@ class Style {
235233
errorContainer: Color(0xFFFFDAD6),
236234
onError: Color(0xFFFFFFFF),
237235
onErrorContainer: Color(0xFF410002),
238-
background: Color(0xFFFBFDFA),
239-
onBackground: Color(0xFF191C1B),
240236
surface: Color(0xFFFBFDFA),
241237
onSurface: Color(0xFF191C1B),
242-
surfaceVariant: Color(0xFFDBE5DF),
238+
surfaceContainerHighest: Color(0xFFDBE5DF),
243239
onSurfaceVariant: Color(0xFF3F4945),
244240
outline: Color(0xFF6F7975),
245241
onInverseSurface: Color(0xFFEFF1EE),
@@ -273,11 +269,9 @@ class Style {
273269
errorContainer: Color(0xFF93000A),
274270
onError: Color(0xFF690005),
275271
onErrorContainer: Color(0xFFFFDAD6),
276-
background: Color(0xFF191C1B),
277-
onBackground: Color(0xFFE1E3E0),
278272
surface: Color(0xFF191C1B),
279273
onSurface: Color(0xFFE1E3E0),
280-
surfaceVariant: Color(0xFF3F4945),
274+
surfaceContainerHighest: Color(0xFF3F4945),
281275
onSurfaceVariant: Color(0xFFBFC9C3),
282276
outline: Color(0xFF89938E),
283277
onInverseSurface: Color(0xFF191C1B),
@@ -288,11 +282,6 @@ class Style {
288282
outlineVariant: Color(0xFF3F4945),
289283
scrim: Color(0xFF000000),
290284
);
291-
292-
darkColorScheme.copyWith(
293-
294-
);
295-
296285
return ThemeData(useMaterial3: true, colorScheme: darkColorScheme);
297286
}
298287

@@ -305,8 +294,9 @@ class Style {
305294
return base.copyWith(
306295
brightness: Brightness.light,
307296
appBarTheme: const AppBarTheme(
308-
systemOverlayStyle:
309-
SystemUiOverlayStyle(statusBarBrightness: Brightness.dark),
297+
systemOverlayStyle: SystemUiOverlayStyle(
298+
statusBarBrightness: Brightness.dark,
299+
),
310300
),
311301
colorScheme: const ColorScheme.light().copyWith(
312302
primary: ColorName.accentLight,
@@ -338,7 +328,9 @@ class Style {
338328
scaffoldBackgroundColor: ColorName.backgroundDark,
339329
cardColor: ColorName.cardDark,
340330
dividerColor: ColorName.dividerDark,
341-
dialogBackgroundColor: ColorName.cardDark,
331+
dialogTheme: const DialogTheme(
332+
backgroundColor: ColorName.cardDark,
333+
),
342334
pageTransitionsTheme: _pageTransitionsTheme,
343335
textTheme: GoogleFonts.robotoTextTheme(textTheme),
344336
popupMenuTheme: _buildPopupMenuThemeData(),
@@ -357,8 +349,9 @@ class Style {
357349
final textTheme = base.textTheme;
358350

359351
return textTheme.copyWith(
360-
displayLarge:
361-
textTheme.displayLarge?.copyWith(fontSize: FontSizes.headline1),
352+
displayLarge: textTheme.displayLarge?.copyWith(
353+
fontSize: FontSizes.headline1,
354+
),
362355
displaySmall:
363356
textTheme.displaySmall?.copyWith(fontSize: FontSizes.headline2),
364357
headlineMedium:

lib/widgets/bottom_sheet_dialog.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Future<T?> showBottomSheetDialog<T>({
1111
}) {
1212
return showModalBottomSheet(
1313
context: context,
14-
backgroundColor: Theme.of(context).dialogBackgroundColor,
1514
isDismissible: true,
1615
barrierColor: Colors.black54,
1716
enableDrag: true,

lib/widgets/name_avatar.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class NameAvatar extends StatelessWidget {
1414
height: IconSizes.avatar,
1515
width: IconSizes.avatar,
1616
decoration: BoxDecoration(
17-
color: Theme.of(context).colorScheme.secondary.withOpacity(0.65),
1817
shape: BoxShape.circle,
1918
border: Border.all(
2019
color: Theme.of(context).colorScheme.secondary,

0 commit comments

Comments
 (0)