Fakultas Ilmu Komputer UI

Commit ea73f9b5 authored by Yoga Pratama's avatar Yoga Pratama
Browse files

[GREEN] Implement banner for foreground notification

parent 81889682
import 'package:dropdown_banner/dropdown_banner.dart';
import 'package:flutter/material.dart';
import 'package:bisaGo/config/styles.dart';
import 'package:bisaGo/page/dashboard/dashboard.dart';
......@@ -7,6 +8,8 @@ class BisaGo extends StatelessWidget {
@override
Widget build(BuildContext context) {
final navigatorKey = GlobalKey<NavigatorState>();
return MaterialApp(
title: 'bisaGo',
theme: ThemeData(
......@@ -14,7 +17,10 @@ class BisaGo extends StatelessWidget {
primaryColor: greenPrimary,
backgroundColor: Colors.white,
),
home: Dashboard(),
home: DropdownBanner(
navigatorKey: navigatorKey,
child: Dashboard(),
),
);
}
}
......@@ -57,6 +57,7 @@ dependencies:
firebase_dynamic_links: ^0.7.0+1
firebase_messaging: ^8.0.0-dev.15
carousel_slider: ^3.0.0
dropdown_banner: ^1.4.0
dev_dependencies:
flutter_test:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment