1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
import 'package:flutter/material.dart'; void main() { runApp(MaterialApp( home: MyApp(), debugShowCheckedModeBanner: false, )); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); // @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.teal, body: SafeArea( child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ CircleAvatar( backgroundImage: AssetImage("images/profile.jpg"), radius: 50.0, ), Text( "Smith Jack", style: TextStyle( fontFamily: "Pacifico", fontSize: 40.0, color: Colors.white), ), Text( "FLUTTER DEVELOPER", style: TextStyle( fontFamily: "SourceSansPro", fontSize: 20.0, color: Colors.white), ), Container( margin: EdgeInsets.symmetric(horizontal: 20, vertical: 10), color: Colors.white, child: ListTile( title: Text( "555 555 55 44", style: TextStyle(color: Colors.teal), ), leading: Icon( Icons.phone, color: Colors.teal, ), ), ), Container( margin: EdgeInsets.symmetric(horizontal: 20, vertical: 10), color: Colors.white, child: ListTile( title: Text( "someone@gmail.com", style: TextStyle(color: Colors.teal), ), leading: Icon( Icons.email, color: Colors.teal, ), ), ), ], ), ), ), ); } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
uses-material-design: true # To add assets to your application, add an assets section, like this: assets: - images/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: fonts: - family: Pacifico fonts: - asset: fonts/Pacifico-Regular.ttf - family: SourceSansPro fonts: - asset: fonts/SourceSansPro-Regular.ttf # # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages |
İlk Yorumu Siz Yapın