diff --git a/packages/deriv_ui/lib/components/language_selector/widgets/language_selector_widget.dart b/packages/deriv_ui/lib/components/language_selector/widgets/language_selector_widget.dart index 7478529da..dcee322bc 100644 --- a/packages/deriv_ui/lib/components/language_selector/widgets/language_selector_widget.dart +++ b/packages/deriv_ui/lib/components/language_selector/widgets/language_selector_widget.dart @@ -1,5 +1,4 @@ import 'package:deriv_theme/deriv_theme.dart'; -import 'package:deriv_ui/components/language_selector/widgets/widget_keys.dart'; import 'package:deriv_ui/deriv_ui.dart'; import 'package:flutter/material.dart'; @@ -26,7 +25,7 @@ class LanguageSelectorWidget extends StatelessWidget { @override Widget build(BuildContext context) => TextButton( - key: WidgetKeys.languageSelectorButtonKey, + key: key, clipBehavior: Clip.antiAlias, style: TextButton.styleFrom( shape: RoundedRectangleBorder( diff --git a/packages/deriv_ui/lib/components/language_selector/widgets/widget_keys.dart b/packages/deriv_ui/lib/components/language_selector/widgets/widget_keys.dart deleted file mode 100644 index 3ae53b7c7..000000000 --- a/packages/deriv_ui/lib/components/language_selector/widgets/widget_keys.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:flutter/material.dart'; - -class WidgetKeys { - /// Key for [LanguageSelectorWidget]which is used for choosing the language. - static const Key languageSelectorButtonKey = - ValueKey('language_selector_button_'); -}