diff --git a/lib/Editor.dart b/lib/Editor.dart index 1a00912..0243a1a 100644 --- a/lib/Editor.dart +++ b/lib/Editor.dart @@ -102,31 +102,3 @@ class EditorState extends State { ); } } - -class FileSelectionScreen extends StatelessWidget { - const FileSelectionScreen({super.key}); - - Future 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'), - ), - ), - ); - } -} diff --git a/lib/main.dart b/lib/main.dart index ab1bdac..f9e97bd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,10 +12,7 @@ class MainApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( theme: ThemeData.dark(), - routes: { - "/": (context) => const Editor(), - "/select_file": (context) => const FileSelectionScreen() - }, + routes: {"/": (context) => const Editor()}, ); } }