-
Notifications
You must be signed in to change notification settings - Fork 74
/
aurora.dart
81 lines (79 loc) · 2.48 KB
/
aurora.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import 'package:aurora/aurora.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class MyAuroraGradient extends StatelessWidget {
const MyAuroraGradient({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle.light
.copyWith(statusBarColor: Colors.transparent),
child: Scaffold(
backgroundColor: Colors.black,
body: Stack(
children: [
Positioned(
top: -10,
left: -100,
child: Aurora(
size: 300,
colors: [
const Color(0xffc2e59c).withOpacity(1),
const Color(0xff64b3f4).withOpacity(1)
],
),
),
const Positioned(
top: -50,
right: -50,
child: Aurora(
size: 200,
colors: [Color(0xFFfbd07c), Color(0xFFf7f779)],
)),
const Positioned(
bottom: -100,
right: -300,
child: Aurora(
size: 600,
colors: [Color(0xFFff0f7b), Color(0xFFf89b29)],
)),
const Positioned(
bottom: -50,
left: -100,
child: Aurora(
size: 200,
colors: [Color(0xFF595cff), Color(0xFFc6f8ff)],
)),
Positioned.fill(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Aurora",
style: TextStyle(
fontSize: 48,
fontWeight: FontWeight.bold,
color: Colors.white.withOpacity(0.7),
letterSpacing: 1.2,
),
),
Text(
"Gradients",
style: TextStyle(
fontSize: 52,
fontWeight: FontWeight.bold,
color: Colors.white.withOpacity(0.7),
letterSpacing: 1.2,
),
),
],
),
),
),
],
),
),
);
}
}