mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #2203 from a-wallen/fix_analyzer_warnings
fix analyzer warnings
This commit is contained in:
commit
c45c0a8cff
@ -253,7 +253,6 @@ class AppearanceSettingsState with _$AppearanceSettingsState {
|
|||||||
disabledColor: theme.shader4,
|
disabledColor: theme.shader4,
|
||||||
highlightColor: theme.main1,
|
highlightColor: theme.main1,
|
||||||
indicatorColor: theme.main1,
|
indicatorColor: theme.main1,
|
||||||
toggleableActiveColor: theme.main1,
|
|
||||||
cardColor: theme.input,
|
cardColor: theme.input,
|
||||||
colorScheme: ColorScheme(
|
colorScheme: ColorScheme(
|
||||||
brightness: brightness,
|
brightness: brightness,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
|
||||||
|
|
||||||
/// For icon that needs to change color when it is on hovered
|
/// For icon that needs to change color when it is on hovered
|
||||||
///
|
///
|
||||||
/// Get the hover color from ThemeData
|
/// Get the hover color from ThemeData
|
||||||
@ -12,16 +11,11 @@ class FlowySvg extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (size != null) {
|
return svgWidget(
|
||||||
return SizedBox.fromSize(
|
'assets/images/$name.svg',
|
||||||
size: size,
|
size: size,
|
||||||
child: SvgPicture.asset('assets/images/$name.svg',
|
color: Theme.of(context).iconTheme.color,
|
||||||
color: Theme.of(context).iconTheme.color),
|
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
return SvgPicture.asset('assets/images/$name.svg',
|
|
||||||
color: Theme.of(context).iconTheme.color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user