null safety
This commit is contained in:
@@ -36,7 +36,7 @@ import 'package:fcs/pages/widgets/right_left_page_rout.dart';
|
||||
import 'package:fcs/pages/widgets/task_button.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_icons/flutter_icons.dart';
|
||||
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
@@ -94,7 +94,7 @@ class _HomePageState extends State<HomePage> {
|
||||
});
|
||||
}
|
||||
|
||||
String notiUserID, notiUserName;
|
||||
late String notiUserID, notiUserName;
|
||||
_showNotiContent(Map<String, dynamic> message) {
|
||||
try {
|
||||
Map<String, dynamic> map = Map<String, dynamic>.from(message["data"]);
|
||||
@@ -291,7 +291,7 @@ class _HomePageState extends State<HomePage> {
|
||||
|
||||
final staffBtn = TaskButton(
|
||||
"staff.title",
|
||||
icon: MaterialCommunityIcons.worker,
|
||||
icon: MaterialCommunityIcons.account_tie,
|
||||
btnCallback: () => Navigator.of(context).push<void>(CupertinoPageRoute(
|
||||
builder: (context) => StaffList(),
|
||||
)),
|
||||
@@ -350,7 +350,7 @@ class _HomePageState extends State<HomePage> {
|
||||
selectedColor: Colors.white,
|
||||
color: Colors.blue,
|
||||
children: <Widget>[
|
||||
Icon(MaterialCommunityIcons.worker),
|
||||
Icon(MaterialCommunityIcons.account_tie),
|
||||
],
|
||||
onPressed: (i) => this.setState(() {
|
||||
isFcs[0] = !isFcs[0];
|
||||
|
||||
Reference in New Issue
Block a user