1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-11 23:39:14 +00:00

remove some elements and add settings page

This commit is contained in:
Eric Windmill
2025-08-06 12:00:00 -04:00
parent d6138c9ab8
commit d43bd76e6c
7 changed files with 115 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'settings_page.dart';
import 'widgets_page.dart';
class GalleryHome extends StatelessWidget {
@@ -24,7 +25,7 @@ class GalleryHome extends StatelessWidget {
builder: (BuildContext context) {
return switch (index) {
0 => const WidgetsPage(),
1 => const Center(child: Text('Settings')),
1 => const SettingsPage(),
_ => const Center(child: Text('Widgets')),
};
},