File tree Expand file tree Collapse file tree 10 files changed +13
-11
lines changed Expand file tree Collapse file tree 10 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- include : package:very_good_analysis/analysis_options.3.0.1 .yaml
1
+ include : package:very_good_analysis/analysis_options.5.1.0 .yaml
Original file line number Diff line number Diff line change 1
- include : package:very_good_analysis/analysis_options.3.0.1 .yaml
1
+ include : package:very_good_analysis/analysis_options.5.1.0 .yaml
2
2
linter :
3
3
rules :
4
4
public_member_api_docs : false
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
129
129
}
130
130
131
131
class OnboardingStep extends StatelessWidget {
132
- const OnboardingStep ({super .key, required this .step});
132
+ const OnboardingStep ({required this .step, super .key });
133
133
134
134
static Page <void > page (int step) {
135
135
return MaterialPage <void >(child: OnboardingStep (step: step));
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
5
5
import 'package:flutter_bloc/flutter_bloc.dart' ;
6
6
7
7
class CitySelection extends StatelessWidget {
8
- const CitySelection ({super .key, required this .state});
8
+ const CitySelection ({required this .state, super .key });
9
9
10
10
static MaterialPage <void > page ({required String state}) {
11
11
return MaterialPage <void >(child: CitySelection (state: state));
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
5
5
import 'package:flutter_bloc/flutter_bloc.dart' ;
6
6
7
7
class StateSelection extends StatelessWidget {
8
- const StateSelection ({super .key, required this .country});
8
+ const StateSelection ({required this .country, super .key });
9
9
10
10
static MaterialPage <void > page ({required String country}) {
11
11
return MaterialPage <void >(child: StateSelection (country: country));
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import 'package:flutter/material.dart';
2
2
3
3
class Dropdown extends StatelessWidget {
4
4
const Dropdown ({
5
- super .key,
6
5
required this .items,
7
6
required this .onChanged,
8
7
this .value,
9
8
this .hint,
9
+ super .key,
10
10
});
11
11
12
12
final Widget ? hint;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
8
8
void main () => runApp (MyApp (locationRepository: LocationRepository ()));
9
9
10
10
class MyApp extends StatelessWidget {
11
- const MyApp ({super .key, required LocationRepository locationRepository})
11
+ const MyApp ({required LocationRepository locationRepository, super .key })
12
12
: _locationRepository = locationRepository;
13
13
14
14
final LocationRepository _locationRepository;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ environment:
8
8
flutter : " >=3.16.0 <4.0.0"
9
9
10
10
dependencies :
11
+ bloc : ^8.0.0
11
12
equatable : ^2.0.0
12
13
flow_builder :
13
14
path : ../
@@ -16,7 +17,7 @@ dependencies:
16
17
flutter_bloc : ^8.0.0
17
18
18
19
dev_dependencies :
19
- very_good_analysis : ^3.0.1
20
+ very_good_analysis : ^5.1.0
20
21
21
22
flutter :
22
23
uses-material-design : true
Original file line number Diff line number Diff line change
1
+ /// A Flutter package which simplifies flows with a flexible, declarative API.
1
2
library flow_builder;
2
3
3
4
import 'dart:collection' ;
@@ -42,13 +43,13 @@ typedef FlowCallback<T> = T Function(T state);
42
43
class FlowBuilder <T > extends StatefulWidget {
43
44
/// {@macro flow_builder}
44
45
const FlowBuilder ({
45
- super .key,
46
46
required this .onGeneratePages,
47
47
this .state,
48
48
this .onComplete,
49
49
this .controller,
50
50
this .observers = const < NavigatorObserver > [],
51
51
this .clipBehavior = Clip .hardEdge,
52
+ super .key,
52
53
}) : assert (
53
54
state != null || controller != null ,
54
55
'requires either state or controller' ,
@@ -204,9 +205,9 @@ class _FlowBuilderState<T> extends State<FlowBuilder<T>> {
204
205
205
206
class _InheritedFlowController <T > extends InheritedWidget {
206
207
const _InheritedFlowController ({
207
- super .key,
208
208
required this .controller,
209
209
required super .child,
210
+ super .key,
210
211
});
211
212
212
213
final FlowController <T > controller;
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ dependencies:
17
17
dev_dependencies :
18
18
flutter_test :
19
19
sdk : flutter
20
- very_good_analysis : ^3.0.1
20
+ very_good_analysis : ^5.1.0
You can’t perform that action at this time.
0 commit comments