Skip to content

Commit 1a15b22

Browse files
committed
warnings fixed
1 parent 22357a9 commit 1a15b22

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
import 'package:flutter/material.dart';
21

3-
class GFRating extends StatefulWidget {
4-
@override
5-
_GFRatingState createState() => _GFRatingState();
6-
}
7-
8-
class _GFRatingState extends State<GFRating> {
9-
@override
10-
Widget build(BuildContext context) {
11-
return Container(
12-
13-
);
14-
}
15-
}
File renamed without changes.

lib/components/toggle/gf_toggle.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,19 @@ class _GFToggleState extends State<GFToggle> with TickerProviderStateMixin {
164164
(widget.type == GFToggleType.custom ? 'ON' : ''),
165165
style: widget.enabledTextStyle ??
166166
(widget.type == GFToggleType.ios
167-
? TextStyle(color: Colors.white, fontSize: 12)
168-
: TextStyle(
167+
? const TextStyle(
168+
color: Colors.white, fontSize: 12)
169+
: const TextStyle(
169170
color: Colors.white, fontSize: 8)))
170171
: Text(
171172
widget.disabledText ??
172173
(widget.type == GFToggleType.custom ? 'OFF' : ''),
173174
textAlign: TextAlign.end,
174175
style: widget.disabledTextStyle ??
175176
(widget.type == GFToggleType.ios
176-
? TextStyle(color: Colors.white, fontSize: 12)
177-
: TextStyle(
177+
? const TextStyle(
178+
color: Colors.white, fontSize: 12)
179+
: const TextStyle(
178180
color: Colors.white, fontSize: 8)),
179181
),
180182
),

lib/getflutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export 'package:getflutter/components/drawer/gf_drawer_header.dart';
1818
export 'package:getflutter/components/image/gf_image_overlay.dart';
1919
export 'package:getflutter/components/list_tile/gf_list_tile.dart';
2020
export 'package:getflutter/components/search_bar/gf_search_bar.dart';
21-
export 'package:getflutter/components/tabs/gf_tabBar.dart';
21+
export 'package:getflutter/components/tabs/gf_tabbar.dart';
2222
export 'package:getflutter/components/tabs/gf_tabbar_view.dart';
2323
export 'package:getflutter/components/tabs/gf_tabs.dart';
2424
export 'package:getflutter/components/tabs/gf_segment_tabs.dart';

0 commit comments

Comments
 (0)