Advertisement
rajath_pai

UI 1

Aug 4th, 2021
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.32 KB | None | 0 0
  1. // Try this out
  2. // really good
  3.  
  4. import 'package:flutter/material.dart';
  5.  
  6. void main() => runApp(MyApp());
  7.  
  8. class MyApp extends StatelessWidget {
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return MaterialApp(
  12.       debugShowCheckedModeBanner : false,
  13.       home : Home(),
  14.     );
  15.   }
  16. }
  17.  
  18. class Home extends StatefulWidget {
  19.   @override
  20.   _Home createState() => _Home();
  21. }
  22.  
  23. class _Home extends State<Home>{
  24.   @override
  25.   Widget build(BuildContext context){
  26.     return Scaffold(
  27.       backgroundColor : Colors.amber[300],
  28.      
  29.       body : Center(
  30.         child : Container(
  31.           width : 200,
  32.           height : 200,
  33.           child : Icon(Icons.android, size: 80,),
  34.           decoration : BoxDecoration(
  35.             color :  Colors.grey[300],
  36.             borderRadius : BorderRadius.all(Radius.circular(50)),
  37.             boxShadow : [
  38.               BoxShadow(
  39.                 color: Colors.grey,
  40.                 offset: Offset(4.0, 4.0),
  41.                 blurRadius : 15.0,
  42.                 spreadRadius : 1.0,
  43.               ),
  44.               BoxShadow(
  45.                 color: Colors.amber,
  46.                 offset: Offset(-4.0, -4.0),
  47.                 blurRadius : 15.0,
  48.                 spreadRadius : 1.0,
  49.               ),
  50.             ]
  51.           ),
  52.         ),
  53.       ),
  54.     );
  55.   }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement