Remove unused test screen

This commit is contained in:
zontreck 2023-12-25 16:52:32 -07:00
parent c15f0e7986
commit 70fc9f740a
2 changed files with 1 additions and 32 deletions

View file

@ -102,31 +102,3 @@ class EditorState extends State<Editor> {
); );
} }
} }
class FileSelectionScreen extends StatelessWidget {
const FileSelectionScreen({super.key});
Future<void> openFilePicker(BuildContext context) async {
try {} catch (e) {
// Handle errors
print('Error selecting file: $e');
}
Navigator.pop(context);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('File Selection'),
),
body: Center(
child: ElevatedButton(
onPressed: () => openFilePicker(context),
child: const Text('Select File'),
),
),
);
}
}

View file

@ -12,10 +12,7 @@ class MainApp extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
theme: ThemeData.dark(), theme: ThemeData.dark(),
routes: { routes: {"/": (context) => const Editor()},
"/": (context) => const Editor(),
"/select_file": (context) => const FileSelectionScreen()
},
); );
} }
} }