Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.07 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:google_fonts/google_fonts.dart';
  3.  
  4. void main() => runApp(MyApp());
  5.  
  6. class MyApp extends StatelessWidget {
  7.   // This widget is the root of your application.
  8.   @override
  9.   Widget build(BuildContext context) {
  10.     return MaterialApp(
  11.       title: 'Flutter Demo',
  12.       debugShowCheckedModeBanner: false,
  13.       theme: ThemeData(
  14.         primarySwatch: Colors.blue,
  15.       ),
  16.       home: MyHomePage(),
  17.     );
  18.   }
  19. }
  20.  
  21. class MyHomePage extends StatelessWidget {
  22.   @override
  23.   Widget build(BuildContext context) {
  24.     return Scaffold(
  25.       body: Container(
  26.         width: MediaQuery.of(context).size.width,
  27.         height: MediaQuery.of(context).size.height,
  28.         decoration: BoxDecoration(
  29.           gradient: LinearGradient(
  30.             colors: [
  31.               Colors.blue[500],
  32.               Colors.blue[100],
  33.             ],
  34.             begin: Alignment.topCenter,
  35.             end: Alignment.bottomCenter,
  36.           ),
  37.         ),
  38.         child: Column(
  39.           children: <Widget>[
  40.             SizedBox(height: 100),
  41.             Card(
  42.               child: Container(
  43.                 width: 70,
  44.                 height: 70,
  45.                 padding: EdgeInsets.all(12),
  46.                 child: Image.asset('assets/dlogo.png'),
  47.               ),
  48.             ),
  49.             SizedBox(height: 25),
  50.             Container(
  51.               width: 270,
  52.               child: Text(
  53.                 "Welcome to Simple\nDictionary Medicine Pro",
  54.                 textAlign: TextAlign.center,
  55.                 style: GoogleFonts.roboto(
  56.                     fontSize: 25,
  57.                     fontWeight: FontWeight.w400,
  58.                     textStyle: TextStyle(
  59.                       color: Colors.white,
  60.                     )),
  61.               ),
  62.             ),
  63.             SizedBox(height: 70),
  64.             Container(
  65.               width: 270,
  66.               child: Text(
  67.                 "The dictionary App you've been waiting for",
  68.                 textAlign: TextAlign.center,
  69.                 style: GoogleFonts.roboto(
  70.                     fontSize: 20,
  71.                     fontWeight: FontWeight.w300,
  72.                     textStyle: TextStyle(
  73.                       color: Colors.white,
  74.                     )),
  75.               ),
  76.             ),
  77.             SizedBox(height: 100),
  78.             SizedBox(
  79.               width: 270,
  80.               height: 50,
  81.               child: RaisedButton(
  82.                 shape: RoundedRectangleBorder(
  83.                   borderRadius: BorderRadius.circular(16),
  84.                 ),
  85.                 color: Color(0xFF1BC0C5),
  86.                 child: Text(
  87.                   "Get Started",
  88.                   style: GoogleFonts.nunito(
  89.                     fontSize: 25,
  90.                     fontWeight: FontWeight.w700,
  91.                     textStyle: TextStyle(
  92.                       color: Colors.white,
  93.                     ),
  94.                   ),
  95.                 ),
  96.                 onPressed: () {},
  97.               ),
  98.             )
  99.           ],
  100.         ),
  101.       ),
  102.     );
  103.   }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement