diff --git a/example/lib/main_temp.dart b/example/lib/main_temp.dart index 4cc7fb33..c756d5cb 100644 --- a/example/lib/main_temp.dart +++ b/example/lib/main_temp.dart @@ -1195,15 +1195,13 @@ class _MyHomePageState extends State ), Checkbox( - value: check, - onChanged: null, + value: check, + onChanged: null, // (val){ // print('on change val $val'); // } ), - - GFCheckbox( size: GFSize.SMALL, activebgColor: GFColors.DANGER, @@ -1432,7 +1430,6 @@ class _MyHomePageState extends State // - // // GFCarousel( //// initialPage: 1, diff --git a/lib/components/checkbox/gf_checkbox.dart b/lib/components/checkbox/gf_checkbox.dart index ca33dbfb..737a3c9a 100644 --- a/lib/components/checkbox/gf_checkbox.dart +++ b/lib/components/checkbox/gf_checkbox.dart @@ -83,18 +83,20 @@ class _GFCheckboxState extends State { @override Widget build(BuildContext context) => FocusableActionDetector( - enabled: enabled, - child: InkWell( + enabled: enabled, + child: InkWell( onTap: onStatusChange, child: Container( height: widget.size, width: widget.size, decoration: BoxDecoration( - color: enabled ? isSelected - ? widget.type == GFCheckboxType.custom - ? Colors.white - : widget.activebgColor - : widget.inactivebgColor : Colors.grey, + color: enabled + ? isSelected + ? widget.type == GFCheckboxType.custom + ? Colors.white + : widget.activebgColor + : widget.inactivebgColor + : Colors.grey, borderRadius: widget.type == GFCheckboxType.basic ? BorderRadius.circular(3) : widget.type == GFCheckboxType.circle @@ -128,5 +130,5 @@ class _GFCheckboxState extends State { : widget.inactiveIcon, ), ), - ); + ); } diff --git a/lib/components/list_tile/gf_list_tile.dart b/lib/components/list_tile/gf_list_tile.dart index d3bcd523..2c503ae7 100644 --- a/lib/components/list_tile/gf_list_tile.dart +++ b/lib/components/list_tile/gf_list_tile.dart @@ -79,7 +79,7 @@ class GFListTile extends StatelessWidget { subtitleText != null ? Text( subtitleText, - style: TextStyle( + style: const TextStyle( fontSize: 14.5, color: Colors.black54, ), diff --git a/lib/components/search_bar/gf_search_bar.dart b/lib/components/search_bar/gf_search_bar.dart index 78b84281..5e9aafe2 100644 --- a/lib/components/search_bar/gf_search_bar.dart +++ b/lib/components/search_bar/gf_search_bar.dart @@ -161,7 +161,7 @@ class MySingleChoiceSearchState extends State> { color: Theme.of(context).primaryColor, ), ), - suffixIcon: Icon(Icons.search), + suffixIcon: const Icon(Icons.search), border: InputBorder.none, hintText: 'Search here...', contentPadding: const EdgeInsets.only( diff --git a/lib/components/typography/gf_typography.dart b/lib/components/typography/gf_typography.dart index 9c005587..d1eac57b 100644 --- a/lib/components/typography/gf_typography.dart +++ b/lib/components/typography/gf_typography.dart @@ -83,7 +83,7 @@ class GFTypography extends StatelessWidget { image: backgroundImage, fit: BoxFit.cover, colorFilter: backgroundImagecolorFilter ?? - ColorFilter.mode(Colors.black54, BlendMode.darken), + const ColorFilter.mode(Colors.black54, BlendMode.darken), ) : null, ),