Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6. @override
  7. Widget build(BuildContext context) {
  8. return MaterialApp(
  9. theme: ThemeData(primarySwatch: Colors.teal),
  10. title: 'Cv',
  11. home: homepage(),
  12. );
  13. }
  14. }
  15.  
  16. class homepage extends StatelessWidget {
  17. @override
  18. Widget build(BuildContext context) {
  19. return Scaffold(
  20. backgroundColor: Colors.teal,
  21. body: Center(
  22. child: SafeArea(
  23. child: Column(
  24. children: <Widget>[
  25. CircleAvatar(
  26. backgroundColor: Colors.red,
  27. radius: 48.9,
  28. ),
  29. Text(
  30. 'Dev Rexz',
  31. style: TextStyle(
  32. fontSize: 40.5,
  33. fontWeight: FontWeight.bold,
  34. color: Colors.white,
  35. ),
  36.  
  37. )
  38. ],
  39. )),
  40. ),
  41. );
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement