67 lines
1.8 KiB
Dart
67 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:witl/fetcher.dart';
|
|
import 'package:witl/input_data.dart';
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
const HomeScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset('assets/images/choo.png',
|
|
fit: BoxFit.contain,
|
|
height: 64,
|
|
),
|
|
const SizedBox(width: 10,),
|
|
const Text("WITL"),
|
|
]
|
|
),
|
|
),
|
|
body: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children:[
|
|
Text("We may not be able to tell you why.\nBut surely are able to predict when."),
|
|
],
|
|
),
|
|
|
|
const SizedBox(height: 80),
|
|
|
|
InkWell(
|
|
onTap:() {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(builder: (context) => const FetchAPI())
|
|
);
|
|
},
|
|
child: Container(
|
|
padding: const EdgeInsets.all(20.0),
|
|
child: const Text("To Fetch Data")
|
|
),
|
|
),
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
InkWell(
|
|
onTap:() {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(builder: (context) => const InputData())
|
|
);
|
|
},
|
|
child: Container(
|
|
padding: const EdgeInsets.all(20.0),
|
|
child: const Text("To Input Data")
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |