3 Screens with no idea how it works

This commit is contained in:
2023-12-25 15:37:11 +02:00
parent 031dce3584
commit c4dee592f4
4 changed files with 85 additions and 114 deletions

27
witl/lib/fetcher.dart Normal file
View File

@@ -0,0 +1,27 @@
import 'package:flutter/material.dart';
import 'package:witl/home_screen.dart';
class FetchAPI extends StatelessWidget {
const FetchAPI({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Fetching API"),
),
body: InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const HomeScreen()),
);
},
child: Container(
padding: const EdgeInsets.all(16.0),
child: const Text("Go Home (Hopefully no homeless)"),
),
),
);
}
}