Last active
July 25, 2024 11:43
-
-
Save triyono777/7da345560cf7e81d7635b6885e225bb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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