Skip to content

Commit 7805b61

Browse files
committed
fix lints
1 parent b069614 commit 7805b61

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

example/lib/main.dart

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import 'package:flutter_disposebag/flutter_disposebag.dart';
66
import 'package:listenable_stream/listenable_stream.dart';
77
import 'package:rxdart_ext/state_stream.dart';
88

9-
void main() => runApp(MyApp());
9+
void main() => runApp(const MyApp());
1010

1111
class MyApp extends StatelessWidget {
12+
const MyApp({Key? key}) : super(key: key);
13+
1214
@override
1315
Widget build(BuildContext context) {
1416
return MaterialApp(
@@ -26,27 +28,29 @@ class MyHomePage extends StatelessWidget {
2628
Widget build(BuildContext context) {
2729
return Scaffold(
2830
appBar: AppBar(
29-
title: Text('listenable_stream example'),
31+
title: const Text('listenable_stream example'),
3032
),
3133
body: Center(
3234
child: ElevatedButton.icon(
33-
label: Text('GO'),
35+
label: const Text('GO'),
3436
onPressed: () {
3537
Navigator.push(
3638
context,
37-
MaterialPageRoute(builder: (context) => MainPage()),
39+
MaterialPageRoute(builder: (context) => const MainPage()),
3840
);
3941
},
40-
icon: Icon(Icons.home),
42+
icon: const Icon(Icons.home),
4143
),
4244
),
4345
);
4446
}
4547
}
4648

4749
class MainPage extends StatefulWidget {
50+
const MainPage({Key? key}) : super(key: key);
51+
4852
@override
49-
_MainPageState createState() => _MainPageState();
53+
State<MainPage> createState() => _MainPageState();
5054
}
5155

5256
class _MainPageState extends State<MainPage> with DisposeBagMixin {
@@ -79,7 +83,7 @@ class _MainPageState extends State<MainPage> with DisposeBagMixin {
7983
Widget build(BuildContext context) {
8084
return Scaffold(
8185
appBar: AppBar(
82-
title: Text('Main'),
86+
title: const Text('Main'),
8387
),
8488
body: Padding(
8589
padding: const EdgeInsets.all(8.0),

example/test/widget_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:example/main.dart';
1313
void main() {
1414
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
1515
// Build our app and trigger a frame.
16-
await tester.pumpWidget(MyApp());
16+
await tester.pumpWidget(const MyApp());
1717

1818
// Verify that our counter starts at 0.
1919
expect(find.text('0'), findsOneWidget);

pubspec.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ version: 1.1.0
44
homepage: https://github.com/Flutter-Dart-Open-Source/listenable_stream.git
55
repository: https://github.com/Flutter-Dart-Open-Source/listenable_stream.git
66
issue_tracker: https://github.com/Flutter-Dart-Open-Source/listenable_stream/issues
7+
funding:
8+
- https://www.buymeacoffee.com/hoc081098
79

810
environment:
911
sdk: '>=3.0.0 <4.0.0'
@@ -19,4 +21,9 @@ dev_dependencies:
1921
flutter_test:
2022
sdk: flutter
2123

22-
flutter:
24+
topics:
25+
- rxdart
26+
- hoc081098
27+
- reactive-programming
28+
- bloc
29+
- state-management

0 commit comments

Comments
 (0)