Advertisement
Guest User

K0dPrezentacja

a guest
Jan 24th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 4.11 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   @override
  9.   Widget build(BuildContext context) {
  10.     return MaterialApp(
  11.       home: Container(
  12.         decoration: BoxDecoration(
  13.           gradient: LinearGradient(
  14.               begin: Alignment.topCenter,
  15.               end: Alignment.bottomCenter,
  16.               stops: [0, 1],
  17.               colors: [Colors.teal, Colors.blue[400]]),
  18.         ),
  19.         child: Scaffold(
  20.           backgroundColor: Colors.transparent,
  21.           body: SafeArea(
  22.             child: Column(
  23.               mainAxisAlignment: MainAxisAlignment.center,
  24.               children: <Widget>[
  25.                 CircleAvatar(
  26.                   radius: 60.0,
  27.                   backgroundColor: Colors.red,
  28.                   backgroundImage: NetworkImage(
  29.                       'https://scontent-lhr3-1.xx.fbcdn.net/v/t1.0-9/54727578_2190483284365480_8636337435845853184_o.jpg?_nc_cat=101&_nc_oc=AQmLoniZCw3QNBB8midwNoUw0a4cQ-jzNZgmDEf72l7_3dCCjECKaVmkzKzoWX94eow&_nc_ht=scontent-lhr3-1.xx&oh=10b6bc1b5322271e5b28c5c8500b0031&oe=5E9851C8'),
  30.                 ),
  31.                 Text(
  32.                   'Wojciech Konury',
  33.                   style: TextStyle(
  34.                       fontFamily: 'Pacifico',
  35.                       fontSize: 40,
  36.                       fontWeight: FontWeight.bold,
  37.                       color: Colors.white),
  38.                 ),
  39.                 Text(
  40.                   'FLUTTER DEVELOPER',
  41.                   style: TextStyle(
  42.                     fontFamily: 'Source Sans Pro',
  43.                     fontSize: 20.0,
  44.                     color: Colors.teal[100],
  45.                     fontWeight: FontWeight.bold,
  46.                     letterSpacing: 3.0,
  47.                   ),
  48.                 ),
  49.                 SizedBox(
  50.                   height: 20.0,
  51.                   width: 180.0,
  52.                   child: Divider(
  53.                     color: Colors.teal[100],
  54.                   ),
  55.                 ),
  56.                 Card(
  57.                   color: Colors.white,
  58.                   margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
  59.                   child: ListTile(
  60.                     leading: Icon(
  61.                       Icons.phone,
  62.                       color: Colors.teal[900],
  63.                     ),
  64.                     title: Text(
  65.                       '+48 123 456 789',
  66.                       style: TextStyle(
  67.                         fontFamily: 'Source Sans Pro',
  68.                         fontSize: 20.0,
  69.                         color: Colors.teal[900],
  70.                       ),
  71.                     ),
  72.                   ),
  73.                 ),
  74.                 Card(
  75.                   color: Colors.white,
  76.                   margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
  77.                   child: ListTile(
  78.                     leading: Icon(
  79.                       Icons.email,
  80.                       color: Colors.teal[900],
  81.                     ),
  82.                     title: Text(
  83.                       'wojciechkonury@gmail.com',
  84.                       style: TextStyle(
  85.                         fontFamily: 'Source Sans Pro',
  86.                         fontSize: 20.0,
  87.                         color: Colors.teal[900],
  88.                       ),
  89.                     ),
  90.                   ),
  91.                 ),
  92.                 Card(
  93.                   color: Colors.white,
  94.                   margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
  95.                   child: ListTile(
  96.                     leading: Icon(
  97.                       Icons.web,
  98.                       color: Colors.teal[900],
  99.                     ),
  100.                     title: Text(
  101.                       'https://github.com/wojtek717',
  102.                       style: TextStyle(
  103.                         fontFamily: 'Source Sans Pro',
  104.                         fontSize: 20.0,
  105.                         color: Colors.teal[900],
  106.                       ),
  107.                     ),
  108.                   ),
  109.                 ),
  110.               ],
  111.             ),
  112.           ),
  113.         ),
  114.       ),
  115.     );
  116.   }
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement