Skip to content

Instantly share code, notes, and snippets.

@triyono777
Created April 8, 2022 11:21
Show Gist options
  • Save triyono777/7959e99fb34c325cde558646664b365c to your computer and use it in GitHub Desktop.
Save triyono777/7959e99fb34c325cde558646664b365c to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class LoginScreen extends StatefulWidget {
const LoginScreen({Key? key}) : super(key: key);
@override
State<LoginScreen> createState() => _LoginScreenState();
}
class _LoginScreenState extends State<LoginScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
SizedBox(
height: 20,
),
Text('Login',style: TextStyle(fontWeight: FontWeight.bold,fontSize: 30)),
Image.asset(
'images/undraw_new_ideas_jdea.png',
height: 500,
),
SizedBox(
width: 300,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
onPressed: () {},
child: Text('Sign In')),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment