Skip to content

Commit

Permalink
menyesuaikan halaman home
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad8taufiq committed Apr 17, 2024
1 parent 66b8af9 commit a8dfc31
Showing 1 changed file with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,34 @@ class _QuizRegistrationPageState extends State<QuizRegistrationPage> {
).whenComplete(() => null);
}

Future<void> showComingSoon() async {
return showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return StatefulBuilder(
builder: (BuildContext context, StateSetter setState) {
return Container(
height: 100,
width: double.infinity,
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(42),
topRight: Radius.circular(42),
),
),
child: const Center(
child: Text(
'Coming Soon',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
),
);
},
);
},
);
}
@override
Widget build(BuildContext context) {
return BebrasScaffold(
Expand Down Expand Up @@ -398,9 +426,9 @@ class _QuizRegistrationPageState extends State<QuizRegistrationPage> {
fontSize: 14,
innerVerticalPadding: 14,
onTap: () async {
await showModal();
await context.push('/quiz_download');
},
text: 'Daftar Latihan',
text: 'Kerjakan Latihan Minggu Ini',
),
),
const SizedBox(
Expand All @@ -414,9 +442,9 @@ class _QuizRegistrationPageState extends State<QuizRegistrationPage> {
fontSize: 14,
innerVerticalPadding: 14,
onTap: () async {
context.push('/quiz_download');
await showComingSoon();
},
text: 'Riwayat Latihan',
text: 'Latihan Minggu Depan',
),
),
],
Expand Down

0 comments on commit a8dfc31

Please sign in to comment.