Skip to content

Instantly share code, notes, and snippets.

@triyono777
Created April 12, 2022 02:11
Show Gist options
  • Save triyono777/e1d002134f21a193858efdfb60adc5c0 to your computer and use it in GitHub Desktop.
Save triyono777/e1d002134f21a193858efdfb60adc5c0 to your computer and use it in GitHub Desktop.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:projek_satu/login_screen.dart';
class WelcomeScreen extends StatelessWidget {
const WelcomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
Text('Welcome ',style: TextStyle(fontWeight: FontWeight.bold,fontSize: 30),),
Expanded(child: Image.asset('images/idea.png',height: 1000)),
SizedBox(
width: 200,
height: 50,
child: ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => LoginScreen(),
),
);
},
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
child: Text('Login'),
),
),
SizedBox(
height: 20,
),
SizedBox(
width: 200,
height: 50,
child: ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
primary: Colors.grey,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
child: Text('Signup'),
),
),
SizedBox(
height: 20,
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment