WIP: Turn advent of code into flutter app #1

Draft
bearmine wants to merge 8 commits from turn-into-flutter-app into main
2 changed files with 54 additions and 11 deletions
Showing only changes of commit a351a9f71a - Show all commits

51
lib/day_page.dart Normal file
View File

@@ -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,
),
),
],
),
),
],
),
);
}
}

View File

@@ -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<MyHomePage> createState() => _MyHomePageState();
}
@@ -90,14 +93,3 @@ class _MyHomePageState extends State<MyHomePage> {
);
}
}
class DayPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: [
Row(children: [SizedBox(width: 10)]),
],
);
}
}