From c0ac043ad8286d52a43ec7089c62e899acf31a36 Mon Sep 17 00:00:00 2001 From: Volodymyr Nazarkevych Date: Thu, 2 Jan 2025 18:16:53 +0200 Subject: [PATCH] Added "barrierLabel" to showModalBottomSheet --- lib/country_picker.dart | 2 ++ lib/src/country_list_bottom_sheet.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/country_picker.dart b/lib/country_picker.dart index 15082962..2d3e2560 100644 --- a/lib/country_picker.dart +++ b/lib/country_picker.dart @@ -66,6 +66,7 @@ void showCountryPicker({ bool useSafeArea = false, bool useRootNavigator = false, bool moveAlongWithKeyboard = false, + String? barrierLabel, }) { assert( exclude == null || countryFilter == null, @@ -87,5 +88,6 @@ void showCountryPicker({ useSafeArea: useSafeArea, useRootNavigator: useRootNavigator, moveAlongWithKeyboard: moveAlongWithKeyboard, + barrierLabel: barrierLabel, ); } diff --git a/lib/src/country_list_bottom_sheet.dart b/lib/src/country_list_bottom_sheet.dart index cf37c240..a397da99 100644 --- a/lib/src/country_list_bottom_sheet.dart +++ b/lib/src/country_list_bottom_sheet.dart @@ -20,6 +20,7 @@ void showCountryListBottomSheet({ bool useSafeArea = false, bool useRootNavigator = false, bool moveAlongWithKeyboard = false, + String? barrierLabel, }) { showModalBottomSheet( context: context, @@ -27,6 +28,7 @@ void showCountryListBottomSheet({ backgroundColor: Colors.transparent, useSafeArea: useSafeArea, useRootNavigator: useRootNavigator, + barrierLabel: barrierLabel, builder: (context) => _builder( context, onSelect,