Skip to content

Commit 42ce267

Browse files
committed
Cleanup. Update dependencies.
1 parent b986e6c commit 42ce267

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/groups_field.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class _GroupsFieldState extends State<GroupsField> {
123123
event is SuggestionSelect)
124124
.listen((state) {
125125
if (state is GroupExistedFieldsWidgetsDone) {
126-
SchedulerBinding.instance!.addPostFrameCallback(
126+
SchedulerBinding.instance.addPostFrameCallback(
127127
(timeStamp) {
128128
final lastChildElement =
129129
_lastFieldKey.currentContext?.findRenderObject() as RenderBox?;
@@ -154,7 +154,7 @@ class _GroupsFieldState extends State<GroupsField> {
154154
);
155155
}
156156

157-
SchedulerBinding.instance!.addPostFrameCallback(
157+
SchedulerBinding.instance.addPostFrameCallback(
158158
(timeStamp) {
159159
final lastChildElement = _lastFieldKey.currentContext == null
160160
? null
@@ -188,7 +188,7 @@ class _GroupsFieldState extends State<GroupsField> {
188188

189189
_textEditingController.clear();
190190

191-
SchedulerBinding.instance!.addPostFrameCallback(
191+
SchedulerBinding.instance.addPostFrameCallback(
192192
(timeStamp) {
193193
final lastChildElement =
194194
_lastFieldKey.currentContext!.findRenderObject() as RenderBox;
@@ -211,7 +211,7 @@ class _GroupsFieldState extends State<GroupsField> {
211211
}
212212

213213
if (state is SuggestionsReady) {
214-
SchedulerBinding.instance!.addPostFrameCallback((_) {
214+
SchedulerBinding.instance.addPostFrameCallback((_) {
215215
if (_overlayEntry != null) {
216216
_overlayEntry!.remove();
217217
_overlayEntry = null;
@@ -284,7 +284,7 @@ class _GroupsFieldState extends State<GroupsField> {
284284
_overlayEntry?.remove();
285285
_overlayEntry = null;
286286

287-
SchedulerBinding.instance!.addPostFrameCallback(
287+
SchedulerBinding.instance.addPostFrameCallback(
288288
(timeStamp) {
289289
final lastChildElement =
290290
_lastFieldKey.currentContext!.findRenderObject() as RenderBox;
@@ -307,7 +307,7 @@ class _GroupsFieldState extends State<GroupsField> {
307307
}
308308
});
309309

310-
SchedulerBinding.instance!.addPostFrameCallback((timeStamp) {
310+
SchedulerBinding.instance.addPostFrameCallback((timeStamp) {
311311
_groupsFieldBloc.eventController.add(PrepareExistedGroupsFieldsWidgets());
312312
});
313313
}
@@ -329,7 +329,7 @@ class _GroupsFieldState extends State<GroupsField> {
329329
Widget buildLayout(BuildContext context) {
330330
return NotificationListener<SizeChangedLayoutNotification>(
331331
onNotification: (notification) {
332-
SchedulerBinding.instance!.addPostFrameCallback((timeStamp) {
332+
SchedulerBinding.instance.addPostFrameCallback((timeStamp) {
333333
final lastChildElement =
334334
_lastFieldKey.currentContext?.findRenderObject() as RenderBox?;
335335

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ publish_to: "none"
44
version: 0.1.5
55

66
environment:
7-
sdk: ">=2.12.0-0 <3.0.0"
7+
sdk: ">=2.17.0 <3.0.0"
88

99
dependencies:
1010
flutter:
1111
sdk: flutter
1212

13-
cupertino_icons: ^1.0.3
14-
pedantic: ^1.11.0
13+
cupertino_icons: ^1.0.4
14+
pedantic: ^1.11.1
1515

1616
dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
1919

20-
flutter_lints: ^1.0.0-0
20+
flutter_lints: ^2.0.1
2121

2222
flutter:
2323
uses-material-design: true

0 commit comments

Comments
 (0)