Settings Screen + Button in home

This commit is contained in:
2023-12-30 14:18:39 +02:00
parent 893ebc1ed2
commit 9ab300b6b8
3 changed files with 30 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:witl/fetcher.dart';
import 'package:witl/input_data.dart';
import 'package:witl/app_settings.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@@ -16,8 +17,19 @@ class HomeScreen extends StatelessWidget {
fit: BoxFit.contain,
height: 64,
),
const SizedBox(width: 10,),
const Text("WITL"),
const Expanded(child: SizedBox(),),
IconButton(
onPressed: () {Navigator.push(
context,
MaterialPageRoute(builder: (context) => const Settings())
);},
icon: const Icon(Icons.settings))
]
),
),