Skip to content

Instantly share code, notes, and snippets.

@fladago
Last active August 29, 2021 17:03
Show Gist options
  • Save fladago/9234a36fbbf043130373073659de3a4c to your computer and use it in GitHub Desktop.
Save fladago/9234a36fbbf043130373073659de3a4c to your computer and use it in GitHub Desktop.
Kingdom of Shadows
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const CustomContainer(),
);
}
}
class CustomContainer extends StatelessWidget {
const CustomContainer({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
height: 300,
width: 350,
decoration: const BoxDecoration(
color: Colors.blue,
boxShadow: [
BoxShadow(
color: Colors.black,
offset: Offset(15, 0),
blurRadius: 0,
spreadRadius: 0,
),
BoxShadow(
color: Colors.black,
offset: Offset(0, 15),
blurRadius: 0,
spreadRadius: 0,
),
BoxShadow(
color: Colors.black,
offset: Offset(0, -15),
blurRadius: 0,
spreadRadius: 0,
),
BoxShadow(
color: Colors.black,
offset: Offset(15, -15),
blurRadius: 0,
spreadRadius: 0,
),
BoxShadow(
color: Colors.black,
offset: Offset(15, 15),
blurRadius: 0,
spreadRadius: 0,
),
],
borderRadius: BorderRadius.only(
topRight: Radius.circular(30),
bottomRight: Radius.circular(30),
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment