-
Notifications
You must be signed in to change notification settings - Fork 1
/
fire.dart
67 lines (63 loc) · 1.99 KB
/
fire.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
import 'package:flutter/material.dart';
import 'package:EncodeTHEMElaunch/ElementComponents/elements.dart';
class Fire extends StatelessWidget {
const Fire({super.key});
@override
Widget build(BuildContext context) {
final _size = MediaQuery.of(context).size;
return MaterialApp(
theme: ThemeData(fontFamily: 'Poppins'),
debugShowCheckedModeBanner: false,
home: Scaffold(
backgroundColor: Colors.black26,
body: Stack(
children: [
// Background Container (Blue)
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Container(
decoration: const BoxDecoration(
color: Color.fromRGBO(146, 170, 190, 88),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(50),
topRight: Radius.circular(50),
),
),
height: _size.height/1.85,
width: _size.width,
),
),
// Elementrix Text
Positioned(
bottom: _size.height / 2.4,
left: _size.width / 2.8,
child: const SizedBox(
child: Text(
'Fire',
style: TextStyle(fontSize: 32, color: Colors.black),
textAlign: TextAlign.center,
),
),
),
// Overlaying Bottom Container (White)
Positioned(
width: _size.width,
bottom: _size.height / 8,
child: Center(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(18),
color: Colors.white,
),
child: FireWidget(check: true, size: true,)
),
)
)
],
),
),
);
}
}