Skip to content

Instantly share code, notes, and snippets.

@triyono777
Last active July 25, 2024 11:43
Show Gist options
  • Save triyono777/7da345560cf7e81d7635b6885e225bb9 to your computer and use it in GitHub Desktop.
Save triyono777/7da345560cf7e81d7635b6885e225bb9 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({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)),
Image.asset('assets/images/undraw_new_ideas_jdea.png'),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 250,
height: 50,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
onPressed: () {},
child: Text('Login'),
),
),
SizedBox(height: 20),
SizedBox(
width: 250,
height: 50,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.grey,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
onPressed: () {},
child: Text('Signup'),
),
),
],
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment