Facebook
From hung, 2 Months ago, written in Dart.
Embed
Download Paste or View Raw
Hits: 172
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(const Flag());
  5. }
  6.  
  7. class Flag extends StatelessWidget {
  8.   const Flag({super.key});
  9.  
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       debugShowCheckedModeBanner: false,
  14.       home: Scaffold(
  15.         body: Center(
  16.           child: Container(
  17.             width: 300,
  18.             height: 300,
  19.             decoration: const BoxDecoration(
  20.               boxShadow: [
  21.                 BoxShadow(
  22.                   color: Colors.blueGrey,
  23.                   blurRadius: 10,
  24.                   offset: Offset(5.0, 5.0),
  25.                   spreadRadius: 2,
  26.                 )
  27.               ],
  28.               color: Colors.red,
  29.             ),
  30.             child: const Center(
  31.               child: Icon(
  32.                 Icons.star,
  33.                 size: 200,
  34.                 color: Colors.yellow,
  35.               ),
  36.             ),
  37.           ),
  38.         ),
  39.       ),
  40.     );
  41.   }
  42. }
  43.  
  44.