Advertisement
rajath_pai

Spofity Logo

Aug 8th, 2021
1,723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.55 KB | None | 0 0
  1. // Spofity Logo
  2. // How it looks : https://github.com/rajatpai/flutter/blob/main/Soft%20UI%20Spotify%20Logo.md
  3.  
  4. import 'package:flutter/material.dart';
  5. import 'dart:math';
  6.  
  7. void main() => runApp(MyApp());
  8.  
  9. class MyApp extends StatelessWidget {
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       debugShowCheckedModeBanner : false,
  14.       home : Home(),
  15.     );
  16.   }
  17. }
  18.  
  19. class Home extends StatefulWidget {
  20.   @override
  21.   _Home createState() => _Home();
  22. }
  23.  
  24. class _Home extends State<Home>{
  25.   @override
  26.   Widget build(BuildContext context){
  27.     return Scaffold(
  28.       backgroundColor : Colors.grey[800],
  29.      
  30.       body : Center(
  31.         child : Container(
  32.           width : 200,
  33.           height : 200,
  34.           child : Transform.rotate(
  35.             angle: 269 * pi / 180,
  36.             child: Icon(Icons.contactless, size: 80, color : Colors.lightGreenAccent[700],),
  37.             ),
  38.           decoration : BoxDecoration(
  39.             color :  Colors.black,
  40.             borderRadius : BorderRadius.all(Radius.circular(50)),
  41.             boxShadow : [
  42.               BoxShadow(
  43.                 color: Color(0xFF212121),
  44.                 offset: Offset(4.0, 4.0),
  45.                 blurRadius : 15.0,
  46.                 spreadRadius : 1.0,
  47.               ),
  48.               BoxShadow(
  49.                 color: Color(0xFF616161),
  50.                 offset: Offset(-4.0, -4.0),
  51.                 blurRadius : 15.0,
  52.                 spreadRadius : 1.0,
  53.               ),
  54.             ]
  55.           ),
  56.         ),
  57.       ),
  58.     );
  59.   }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement