diff --git a/lib/day_page.dart b/lib/day_page.dart new file mode 100644 index 0000000..158e495 --- /dev/null +++ b/lib/day_page.dart @@ -0,0 +1,51 @@ +import 'package:flutter/material.dart'; + +void buttonPushed() { + print("Button Pushed"); +} + +class DayPage extends StatelessWidget { + const DayPage({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + children: [ + Row( + children: [ + TextButton(onPressed: buttonPushed, child: Text("Select Input")), + SizedBox( + width: 300, + child: TextField( + decoration: InputDecoration( + border: OutlineInputBorder(), + hintText: 'Input File Path', + ), + ), + ), + ], + ), + Row( + children: [TextButton(onPressed: buttonPushed, child: Text("Run"))], + ), + Expanded( + child: Row( + children: [ + Expanded( + child: TextField( + decoration: InputDecoration(border: OutlineInputBorder()), + readOnly: true, + expands: true, + minLines: null, + maxLines: null, + ), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/main.dart b/lib/main.dart index 00c4d81..ccd22ca 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -3,6 +3,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'days_enum.dart'; +import 'day_page.dart'; void main() { runApp(MyApp()); @@ -31,6 +32,8 @@ class MyAppState extends ChangeNotifier { } class MyHomePage extends StatefulWidget { + const MyHomePage({super.key}); + @override State createState() => _MyHomePageState(); } @@ -90,14 +93,3 @@ class _MyHomePageState extends State { ); } } - -class DayPage extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Column( - children: [ - Row(children: [SizedBox(width: 10)]), - ], - ); - } -}