Просмотр исходного кода

remove passing of context as argument unwantedly

ashilkn 2 лет назад
Родитель
Сommit
d68a789f8a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      lib/ui/components/expandable_menu_item_widget.dart
  2. 1 1
      lib/ui/settings/common_settings.dart

+ 1 - 1
lib/ui/components/expandable_menu_item_widget.dart

@@ -71,7 +71,7 @@ class _ExpandableMenuItemWidgetState extends State<ExpandableMenuItemWidget> {
                 padding: const EdgeInsets.only(bottom: 4),
                 padding: const EdgeInsets.only(bottom: 4),
                 child: widget.selectionOptionsWidget,
                 child: widget.selectionOptionsWidget,
               ),
               ),
-              theme: getExpandableTheme(context),
+              theme: getExpandableTheme(),
               controller: expandableController,
               controller: expandableController,
             ),
             ),
           ),
           ),

+ 1 - 1
lib/ui/settings/common_settings.dart

@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
 
 
 Widget sectionOptionSpacing = const SizedBox(height: 6);
 Widget sectionOptionSpacing = const SizedBox(height: 6);
 
 
-ExpandableThemeData getExpandableTheme(BuildContext context) {
+ExpandableThemeData getExpandableTheme() {
   return const ExpandableThemeData(
   return const ExpandableThemeData(
     hasIcon: false,
     hasIcon: false,
     useInkWell: false,
     useInkWell: false,