Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Linloir committed Mar 6, 2022
1 parent 3f43381 commit 6410944
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
7 changes: 5 additions & 2 deletions lib/display_pannel.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : Linloir
* @Date : 2022-03-05 20:56:05
* @LastEditTime : 2022-03-06 16:10:50
* @LastEditTime : 2022-03-06 17:32:26
* @Description : The display widget of the wordle game
*/

Expand Down Expand Up @@ -183,7 +183,10 @@ class _WordleDisplayWidgetState extends State<WordleDisplayWidget> with TickerPr
],
),
),
const InputPannelWidget(),
const Padding(
padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 30.0),
child: InputPannelWidget(),
),
],
),
onNotification: (noti) {
Expand Down
28 changes: 14 additions & 14 deletions lib/input_pannel.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : Linloir
* @Date : 2022-03-05 20:55:53
* @LastEditTime : 2022-03-06 16:09:08
* @LastEditTime : 2022-03-06 17:28:40
* @Description : Input pannel class
*/

Expand Down Expand Up @@ -91,8 +91,8 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
Padding(
padding: const EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 5.0),
child: SizedBox(
width: 50.0,
height: 80.0,
width: 25.0,
height: 50.0,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder?>(RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0))),
Expand All @@ -107,7 +107,7 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
child: Text(
_keyPos[0][i],
style: TextStyle (
fontSize: 18,
fontSize: 14,
fontWeight: FontWeight.bold,
color: _keyState[_keyPos[0][i]]! == 0 ? Colors.grey[850] : Colors.white,
),
Expand All @@ -129,8 +129,8 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
Padding(
padding: const EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 5.0),
child: SizedBox(
width: 50.0,
height: 80.0,
width: 25.0,
height: 50.0,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder?>(RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0))),
Expand All @@ -145,7 +145,7 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
child: Text(
_keyPos[1][i],
style: TextStyle (
fontSize: 18,
fontSize: 14,
fontWeight: FontWeight.bold,
color: _keyState[_keyPos[1][i]]! == 0 ? Colors.grey[850] : Colors.white,
),
Expand All @@ -160,8 +160,8 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
Padding(
padding: const EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 5.0),
child: SizedBox(
width: 110,
height: 80.0,
width: 50,
height: 50.0,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder?>(RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0))),
Expand All @@ -187,8 +187,8 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
Padding(
padding: const EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 5.0),
child: SizedBox(
width: 50.0,
height: 80.0,
width: 25.0,
height: 50.0,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder?>(RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0))),
Expand All @@ -203,7 +203,7 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
child: Text(
_keyPos[2][i],
style: TextStyle (
fontSize: 18,
fontSize: 14,
fontWeight: FontWeight.bold,
color: _keyState[_keyPos[2][i]]! == 0 ? Colors.grey[850] : Colors.white,
),
Expand All @@ -218,8 +218,8 @@ class _InputPannelWidgetState extends State<InputPannelWidget> {
Padding(
padding: const EdgeInsets.fromLTRB(5.0, 5.0, 5.0, 5.0),
child: SizedBox(
width: 170,
height: 80.0,
width: 70,
height: 50.0,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder?>(RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0))),
Expand Down
14 changes: 4 additions & 10 deletions lib/offline.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : Linloir
* @Date : 2022-03-05 20:41:41
* @LastEditTime : 2022-03-06 16:22:11
* @LastEditTime : 2022-03-06 17:25:21
* @Description : Offline page
*/

Expand Down Expand Up @@ -44,15 +44,9 @@ class _OfflinePageState extends State<OfflinePage> {
)
],
),
body: Column(
children: const <Widget>[
Expanded(
child: ValidationProvider(
child: WordleDisplayWidget(),
)
),
],
),
body: const ValidationProvider(
child: WordleDisplayWidget(),
)
);
}
}

0 comments on commit 6410944

Please sign in to comment.