WIP: Turn advent of code into flutter app #1

Draft
bearmine wants to merge 8 commits from turn-into-flutter-app into main
Showing only changes of commit ee83f952f5 - Show all commits

View File

@@ -66,7 +66,7 @@ class _MyHomePageState extends State<MyHomePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// Manage days and create items list of a pages. // Manage days and create items list of a pages.
final days = [AdventOfCodeDays.day1, AdventOfCodeDays.day2]; final days = AdventOfCodeDays.values;
List<NavigationRailDestination> dayItems = []; List<NavigationRailDestination> dayItems = [];
for (var day in days) { for (var day in days) {
dayItems.add( dayItems.add(
@@ -78,7 +78,7 @@ class _MyHomePageState extends State<MyHomePage> {
} }
var colorScheme = Theme.of(context).colorScheme; var colorScheme = Theme.of(context).colorScheme;
Widget page = DayPage(AdventOfCodeDays.day1); Widget page = DayPage(days[selectedIndex]);
// The container for the current page, with its background color // The container for the current page, with its background color
// and subtle switching animation. // and subtle switching animation.