-
Notifications
You must be signed in to change notification settings - Fork 73
/
glass_kit.dart
58 lines (56 loc) · 1.63 KB
/
glass_kit.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
import 'package:flutter/material.dart';
import 'package:glass_kit/glass_kit.dart';
class MyGlassKit extends StatelessWidget {
const MyGlassKit({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
TextStyle style = const TextStyle(
color: Colors.white,
fontSize: 26,
);
return Scaffold(
backgroundColor: Colors.white12,
appBar: AppBar(
title: const Text('Glass Kit'),
backgroundColor: Colors.deepOrangeAccent,
),
body: Stack(
children: [
Image.asset(
'assets/images/background/WallpaperDog-20500155.jpg',
fit: BoxFit.cover,
height: double.infinity,
),
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GlassContainer.clearGlass(
height: 200,
width: 300,
alignment: Alignment.center,
borderRadius: BorderRadius.circular(20),
child: Text(
'Clear Glass',
style: style,
),
),
const SizedBox(height: 60),
GlassContainer.frostedGlass(
height: 200,
width: 300,
alignment: Alignment.center,
borderRadius: BorderRadius.circular(20),
child: Text(
'Frosted Glass',
style: style,
),
),
],
),
),
],
),
);
}
}