Skip to content

Commit

Permalink
Better main page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Sep 6, 2023
1 parent 5f5b718 commit 8ef3952
Showing 1 changed file with 44 additions and 30 deletions.
74 changes: 44 additions & 30 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,36 +121,50 @@ class _KioskMainPageState extends State<KioskMainPage> {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
padding: const EdgeInsets.all(8.0),
child: ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
const CheckInByBarcodeScreen()),
);
},
child: Text(
"QR 코드",
style: TextStyle(fontSize: 40),
))),
Container(
padding: const EdgeInsets.all(8.0),
child: ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
const CheckInByEmailScreen()),
);
},
child: Text(
"E-Mail 주소",
style: TextStyle(fontSize: 40),
))),
Card(
clipBehavior: Clip.hardEdge,
child: InkWell(
splashColor: Colors.orange.withAlpha(30),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
const CheckInByBarcodeScreen()),
);
},
child: Container(
padding: const EdgeInsets.all(30.0),
child: Column(children: [
Icon(
Icons.qr_code_scanner,
size: 100.0,
),
Text("QR 코드", style: TextStyle(fontSize: 40))
])),
)),
Card(
clipBehavior: Clip.hardEdge,
child: InkWell(
splashColor: Colors.orange.withAlpha(30),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
const CheckInByEmailScreen()),
);
},
child: Container(
padding: const EdgeInsets.all(30.0),
child: Column(children: [
Icon(
Icons.email_outlined,
size: 100.0,
),
Text("E-Mail 주소", style: TextStyle(fontSize: 40))
])),
))
],
),
Row(
Expand Down

0 comments on commit 8ef3952

Please sign in to comment.