-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtry_again_page.dart
113 lines (111 loc) · 4.37 KB
/
try_again_page.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import 'package:flutter/material.dart';
import 'package:flutter_gdsc_sc/solution_challenge/game_page.dart';
class TryAgainPage extends StatelessWidget {
const TryAgainPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Container(
decoration:
BoxDecoration(border: Border.all(color: Colors.black, width: 8)),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding:
const EdgeInsets.only(top: 150, left: 30, right: 30),
child: Container(
width: 400,
height: 200,
decoration: BoxDecoration(
color: const Color.fromARGB(0, 193, 177, 177)
.withOpacity(0.4),
border: Border.all(
color: const Color(0x00939393).withOpacity(1)),
borderRadius: BorderRadius.circular(15)),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 100,
height: 100,
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(200)),
child: const Icon(
Icons.sentiment_very_dissatisfied,
size: 70,
color: Colors.white,
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
width: 100,
height: 50,
decoration: BoxDecoration(
color: const Color(0x008b956d).withOpacity(0.4),
border: Border.all(
color: const Color(0x008b956d)
.withOpacity(1))),
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Try Again!',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
fontFamily: 'GamjaFlower'),
),
],
),
),
),
],
),
),
),
Padding(
padding: const EdgeInsets.all(100),
child: Container(
width: 150,
height: 150,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(100),
color: Colors.red,
boxShadow: const [
BoxShadow(blurRadius: 7, color: Colors.grey)
]),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const GamePage()));
},
child: const Icon(
Icons.refresh,
color: Colors.white,
size: 100,
),
)
],
),
),
)
],
)
],
),
),
);
}
}