Created
March 1, 2024 01:33
-
-
Save oluyoung/9dc0fdf414aa0e503e1b488ea22bc931 to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
This file contains 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Eko Moto Aid', | |
theme: ThemeData( | |
useMaterial3: true, | |
primarySwatch: Colors.green, | |
), | |
home: MyHomePage(), | |
debugShowCheckedModeBanner: false, | |
); | |
} | |
} | |
class MyHomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
body: SafeArea( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: <Widget>[ | |
SizedBox(height: 48), // Spacing at the top | |
Image.network( | |
'https://corsproxy.io/?https%3A%2F%2Foaidalleapiprodscus.blob.core.windows.net%2Fprivate%2Forg-wSmXi5iQtZ8IT5ppyif5Bx30%2Fuser-w72LKma5wN5YGd9sEbbKRFb0%2Fimg-DAz8a6qsm2pLzojHf5nkRqdl.png%3Fst%3D2024-03-01T00%253A33%253A17Z%26se%3D2024-03-01T02%253A33%253A17Z%26sp%3Dr%26sv%3D2021-08-06%26sr%3Db%26rscd%3Dinline%26rsct%3Dimage%2Fpng%26skoid%3D6aaadede-4fb3-4698-a8f6-684d7786b067%26sktid%3Da48cca56-e6da-484e-a814-9c849652bcb3%26skt%3D2024-02-29T21%253A42%253A13Z%26ske%3D2024-03-01T21%253A42%253A13Z%26sks%3Db%26skv%3D2021-08-06%26sig%3DjynwxXNpWHpQLHwYNLGg5nahVpraKMyofoCljqeEQhg%253D', | |
height: 100, | |
), | |
Expanded( | |
child: Image.network( | |
'https://corsproxy.io/?https%3A%2F%2Foaidalleapiprodscus.blob.core.windows.net%2Fprivate%2Forg-wSmXi5iQtZ8IT5ppyif5Bx30%2Fuser-w72LKma5wN5YGd9sEbbKRFb0%2Fimg-42nu4HJuIeFLgduUrnLaNsE0.png%3Fst%3D2024-03-01T00%253A33%253A18Z%26se%3D2024-03-01T02%253A33%253A18Z%26sp%3Dr%26sv%3D2021-08-06%26sr%3Db%26rscd%3Dinline%26rsct%3Dimage%2Fpng%26skoid%3D6aaadede-4fb3-4698-a8f6-684d7786b067%26sktid%3Da48cca56-e6da-484e-a814-9c849652bcb3%26skt%3D2024-02-29T23%253A37%253A46Z%26ske%3D2024-03-01T23%253A37%253A46Z%26sks%3Db%26skv%3D2021-08-06%26sig%3DdoFszKkQSHVRJNZ35ELRGd86KNpHOCkcXT5FcEZcBMU%253D', | |
), | |
), | |
Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 32, vertical: 16), | |
child: Column( | |
children: <Widget>[ | |
Text( | |
'EKO MOTO AID', | |
style: TextStyle( | |
fontSize: 24, | |
fontWeight: FontWeight.bold, | |
color: Colors.black, | |
), | |
), | |
SizedBox(height: 16), | |
Text( | |
'Lorem ipsum dolor sit amet consectetur. ' | |
'Ac amet risus mi dui euismod tincidunt ' | |
'arcutincidunt. Purus sagittis gravida posuere ' | |
'pharetra at eleifend.', | |
textAlign: TextAlign.center, | |
style: TextStyle( | |
fontSize: 16, | |
color: Colors.black.withOpacity(0.6), | |
), | |
), | |
], | |
), | |
), | |
Padding( | |
padding: const EdgeInsets.all(32), | |
child: ElevatedButton( | |
onPressed: () { | |
// Handle button press | |
}, | |
child: Text('Get Started'), | |
style: ElevatedButton.styleFrom( | |
primary: Colors.green, | |
minimumSize: Size(double.infinity, 50), // double.infinity is the width and 50 is the height | |
), | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment