Created
January 12, 2020 08:27
-
-
Save greycode/543fc025f3ceb6a461c7a3b8c7ce5442 to your computer and use it in GitHub Desktop.
softUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: MyHomePage(title: 'Flutter Demo Home Page'), | |
); | |
} | |
} | |
class MyHomePage extends StatefulWidget { | |
MyHomePage({Key key, this.title}) : super(key: key); | |
final String title; | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.grey[300], | |
body: Center( | |
child: Container( | |
width: 200, | |
height: 200, | |
child: Icon(Icons.android, size: 80,), | |
decoration: BoxDecoration( | |
color: Colors.grey[300], | |
borderRadius: BorderRadius.all(Radius.circular(40)), | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.grey[500], | |
offset: Offset(5.0, 5.0), | |
blurRadius: 15.0, | |
spreadRadius: 1, | |
), | |
BoxShadow( | |
color: Colors.white, | |
offset: Offset(-5.0, -5.0), | |
blurRadius: 15.0, | |
spreadRadius: 1, | |
), | |
] | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.youtube.com/watch?v=LngTgtRerxs