Skip to content

Commit

Permalink
Merge pull request #8 from nathanielajayi7/master
Browse files Browse the repository at this point in the history
Avoid Keyboard when showing from bottom
  • Loading branch information
vantuan88291 authored Sep 16, 2022
2 parents 46f2aff + 5f62399 commit d39e2e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class _MyHomePageState extends State<MyHomePage> {

@override
void initState() {
// TODO: implement initState
super.initState();
AlertController.onTabListener(
(Map<String, dynamic>? payload, TypeAlert type) {
Expand Down
2 changes: 1 addition & 1 deletion lib/dropdown_alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class DropdownAlertWidget extends State<DropdownAlert>
color: getBackground(this.type),
padding: EdgeInsets.only(
top: widget.position == AlertPosition.TOP ? 36 : 18,
bottom: 18 + ( widget.avoidBottomInset ? MediaQuery.of(context).padding.bottom : 0),
bottom: 18 + ( widget.avoidBottomInset ? (MediaQuery.of(context).padding.bottom + MediaQuery.of(context).viewInsets.bottom) : 0),
left: 12,
right: 12),
shape: new RoundedRectangleBorder(
Expand Down

0 comments on commit d39e2e8

Please sign in to comment.