Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when nesting SettingTileGroup #19

Open
Merthan opened this issue Jun 30, 2020 · 0 comments
Open

Exception when nesting SettingTileGroup #19

Merthan opened this issue Jun 30, 2020 · 0 comments

Comments

@Merthan
Copy link

Merthan commented Jun 30, 2020

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building SettingsTileGroup(dirty, dependencies: [_InheritedTheme, _LocalizationsScope-[GlobalKey#7e5f8]]):
The getter 'iterator' was called on null.
Receiver: null
Tried calling: iterator

The relevant error-causing widget was: 
  SettingsTileGroup file:///C:/myPath/lib/screens/settings/settingsscreen.dart:82:7
When the exception was thrown, this was the stack: 
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      List.addAll (dart:core-patch/growable_array.dart:194:28)
#2      SettingsTileGroup._buildChild (package:shared_preferences_settings/src/settings_screen.dart:311:14)
#3      SettingsTileGroup.build (package:shared_preferences_settings/src/settings_screen.dart:273:14)
#4      StatelessElement.build (package:flutter/src/widgets/framework.dart:4576:28)
...

Error Reproducable

Additionally, ExpansionSettingsTile should also have properties that other tiles have, especially subtitle and checking if it's enabled is important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant