Created
May 2, 2023 14:40
-
-
Save Akhu/eba28d4fd44063ffc596cf7ffe99393f 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 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
static const String _title = 'Flutter - Basics'; | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: _title, | |
home: Scaffold( | |
body: const MyFirstView(), | |
), | |
); | |
} | |
} | |
class MyFirstView extends StatelessWidget { | |
const MyFirstView({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Column(mainAxisSize: MainAxisSize.max, children: [ | |
Expanded( | |
child: Container( | |
width: double.maxFinite, | |
decoration: BoxDecoration( | |
color: Colors.tealAccent[200], | |
borderRadius: const BorderRadius.only( | |
topLeft: Radius.circular(0), | |
topRight: Radius.circular(0), | |
bottomLeft: Radius.circular(80), | |
bottomRight: Radius.circular(80), | |
))), | |
), | |
const SizedBox(height: 55), | |
Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 26, vertical: 2), | |
child: Column(children: [ | |
Text("Découvrez la plus grande place de marché numérique", | |
maxLines: 3, | |
textAlign: TextAlign.center, | |
style: TextStyle( | |
color: Colors.black, | |
fontSize: 28, | |
fontWeight: FontWeight.w900)), | |
const SizedBox(height: 18), | |
Text( | |
"La plus grand place de marché au monde pour les NFTs (Non-fungible Tokens) où vous pourrez faire les meilleurs affaires.", | |
textAlign: TextAlign.center, | |
style: Theme.of(context).textTheme.bodyText2), | |
const SizedBox(height: 34), | |
Row(children: [ | |
TextButton( | |
onPressed: () => print("Hello"), | |
child: const Text("PASSER", | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
color: Color(0xFF65635E)))), | |
const Spacer(), | |
MaterialButton( | |
onPressed: () => print("hello"), | |
shape: const RoundedRectangleBorder( | |
borderRadius: BorderRadius.all(Radius.circular(35))), | |
textColor: Colors.white, | |
color: Colors.tealAccent[200], | |
child: const Padding( | |
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 8), | |
child: Icon(Icons.arrow_forward), | |
), | |
) | |
]), | |
const SizedBox( | |
height: 44,) | |
])) | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment