3136e5bb7e
Replace the tabbed Settings flow with a single grouped page that searches and lazily loads server-backed sections. Preserve existing settings behavior while adding inline loading and retry states and updating coverage for the new navigation model.
20 lines
596 B
Dart
20 lines
596 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'settings_group.dart';
|
|
import 'settings_server_view.dart';
|
|
|
|
/// A group-shaped placeholder for a lazy section that has not been reached yet.
|
|
/// It keeps the section's heading, so the page reads the same before and after
|
|
/// the section loads.
|
|
class SettingsSkeleton extends StatelessWidget {
|
|
const SettingsSkeleton({super.key, required this.title});
|
|
|
|
final String title;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => SettingsGroup(
|
|
title: title,
|
|
children: const <Widget>[SettingsGroupItem(child: SettingsPlaceholder())],
|
|
);
|
|
}
|