Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions lib/widgets/map_theme_settings_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ class MapThemeSettingsSection extends StatelessWidget {
children: [
Text("Map Theme", style: ShadTheme.of(context).textTheme.lead),
const SizedBox(height: 10),
const _ActiveThemeCard(),
const ActiveThemeCard(),
const SizedBox(height: 16),
const _ProfileLibrarySection(),
const ProfileLibrarySection(),
],
);
}
}

// ─── Zone 1: Active Theme (Document State) ────────────────────

class _ActiveThemeCard extends ConsumerStatefulWidget {
const _ActiveThemeCard();
class ActiveThemeCard extends ConsumerStatefulWidget {
const ActiveThemeCard({super.key});

@override
ConsumerState<_ActiveThemeCard> createState() => _ActiveThemeCardState();
ConsumerState<ActiveThemeCard> createState() => _ActiveThemeCardState();
}

class _ActiveThemeCardState extends ConsumerState<_ActiveThemeCard> {
class _ActiveThemeCardState extends ConsumerState<ActiveThemeCard> {
String? _profileIdBeforeCustomize;
bool _showSaveForm = false;
late final TextEditingController _saveNameController;
Expand Down Expand Up @@ -321,16 +321,16 @@ class _ActiveThemeCardState extends ConsumerState<_ActiveThemeCard> {

// ─── Zone 2: Profile Library (Global Preferences) ─────────────

class _ProfileLibrarySection extends ConsumerStatefulWidget {
const _ProfileLibrarySection();
class ProfileLibrarySection extends ConsumerStatefulWidget {
const ProfileLibrarySection({super.key});

@override
ConsumerState<_ProfileLibrarySection> createState() =>
ConsumerState<ProfileLibrarySection> createState() =>
_ProfileLibrarySectionState();
}

class _ProfileLibrarySectionState
extends ConsumerState<_ProfileLibrarySection> {
extends ConsumerState<ProfileLibrarySection> {
@override
Widget build(BuildContext context) {
final profilesState = ref.watch(mapThemeProfilesProvider);
Expand Down
Loading
Loading