Pogging?
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:witl/home_screen.dart';
|
||||
import 'package:witl/input_data.dart';
|
||||
|
||||
class FetchAPI extends StatelessWidget {
|
||||
const FetchAPI({super.key});
|
||||
@@ -10,18 +11,36 @@ class FetchAPI extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: const Text("Fetching API"),
|
||||
),
|
||||
body: InkWell(
|
||||
onTap: () {
|
||||
body: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const HomeScreen()),
|
||||
MaterialPageRoute(builder: (context) => const HomeScreen())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: const Text("Go Home (Hopefully no homeless)"),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Homescreen")
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const InputData())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Input Data")
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:witl/fetcher.dart';
|
||||
import 'package:witl/input_data.dart';
|
||||
|
||||
class HomeScreen extends StatelessWidget {
|
||||
@@ -10,18 +11,36 @@ class HomeScreen extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: const Text("Placeholder for Home Screen"),
|
||||
),
|
||||
body: InkWell(
|
||||
onTap: () {
|
||||
body: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const InputData()),
|
||||
MaterialPageRoute(builder: (context) => const FetchAPI())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: const Text("Data Input Page (Hopefully)"),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Fetch Data")
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const InputData())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Input Data")
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:witl/fetcher.dart';
|
||||
import 'package:witl/home_screen.dart';
|
||||
|
||||
class InputData extends StatelessWidget {
|
||||
const InputData({super.key});
|
||||
@@ -10,18 +11,36 @@ class InputData extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: const Text("Data Input"),
|
||||
),
|
||||
body: InkWell(
|
||||
onTap: () {
|
||||
body: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const FetchAPI()),
|
||||
MaterialPageRoute(builder: (context) => const HomeScreen())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: const Text("API Fetching (Hopefully)"),
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Homescreen")
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
InkWell(
|
||||
onTap:() {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const FetchAPI())
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: const Text("To Fetch Data")
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -8,8 +8,12 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const MaterialApp(
|
||||
home: HomeScreen(),
|
||||
return MaterialApp(
|
||||
title: "Entry Point",
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
),
|
||||
home: const HomeScreen(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user