-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcomescreen.dart
35 lines (28 loc) · 1.14 KB
/
welcomescreen.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'package:flutter/material.dart';
import 'package:list/components/rounded_button.dart';
import 'package:list/screens/SigninPage.dart';
import 'package:list/screens/SignupPage.dart';
class WelcomeScreen extends StatefulWidget {
@override
_WelcomeScreenState createState() => _WelcomeScreenState();
}
class _WelcomeScreenState extends State<WelcomeScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Welcome to the Shopping List")
),
body: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
RoundedButtons(buttonColor: Colors.teal,onPressed: () {Navigator.push(context, MaterialPageRoute(builder: (context) => SigninPage()));}, label: "Sign in"),
RoundedButtons(buttonColor: Colors.teal, onPressed: () {Navigator.push(context, MaterialPageRoute(builder: (context) => SignupPage()));}, label: "Sign up"),
],),
),
);
}
}