Skip to content

Commit

Permalink
test adding keys to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
horam-deriv committed May 13, 2024
1 parent 15328f4 commit e7fb724
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ class WidgetKeys {
/// the language selector bottom sheet.
static const Key languageSelectorBottomSheetTogglerKey =
ValueKey<String>('language_selector_bottom_sheet_toggler');

/// Key for [LanguageSelectorBottomSheetWidget] which is used for showing the
///
/// the language selector bottom sheet.
static const Key languageSelectorBottomSheetKey =
ValueKey<String>('language_selector_bottom_sheet');
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ class LanguageSelector extends StatelessWidget {
);

LanguageItemList _buildLanguageBottomSheet(
BuildContext context, LanguageState state) =>
BuildContext context,
LanguageState state,
) =>
LanguageItemList(
key: WidgetKeys.languageSelectorBottomSheetKey,
package: usePackageFlags ? 'deriv_language_selector' : null,
items: state.activeLanguages
..sort(
Expand Down

0 comments on commit e7fb724

Please sign in to comment.