Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36c8603

Browse files
asjqkkkklizichen
authored andcommittedSep 15, 2022
fix: #425
1 parent 6bba637 commit 36c8603

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎packages/self_storing_input/lib/src/self_storing_checkbox/custom_checkbox.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _CustomCheckboxState extends State<CustomCheckbox> {
4141
void _showOverlay() {
4242
widget.state.overlayController.close();
4343
_overlay = _buildOverlay(context);
44-
Overlay.of(context)!.insert(_overlay!);
44+
Overlay.of(context).insert(_overlay!);
4545
}
4646

4747
void _closeOverlay() {

‎packages/self_storing_input/lib/src/self_storing_radio_group/custom_radio.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class CustomRadio extends StatelessWidget {
5454
void _showOverlay(BuildContext context) {
5555
state!.closeOverlay();
5656
state!.overlay = _buildOverlay(context);
57-
Overlay.of(context)!.insert(state!.overlay!);
57+
Overlay.of(context).insert(state!.overlay!);
5858
}
5959

6060
OverlayEntry _buildOverlay(BuildContext context) {

‎packages/self_storing_input/lib/src/self_storing_text/edit_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class _EditButtonState extends State<EditButton> {
4242
onPressed: () {
4343
widget.state.overlayController.close();
4444
_overlay = _buildOverlay(context);
45-
Overlay.of(context)!.insert(_overlay!);
45+
Overlay.of(context).insert(_overlay!);
4646
},
4747
);
4848
}

0 commit comments

Comments
 (0)