Fixes exception in platform_channels (#1480)

pull/1481/head
Rulong Chen(陈汝龙) 2 years ago committed by GitHub
parent d99fb974a0
commit 660fdb769d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,8 +20,8 @@ class _PetListScreenState extends State<PetListScreen> {
final scaffoldKey = GlobalKey<ScaffoldState>();
@override
void initState() {
super.initState();
void didChangeDependencies() {
super.didChangeDependencies();
// Receives a string of json object from the platform and converts it
// to PetModel.
final scaffoldMessenger = ScaffoldMessenger.of(context);

Loading…
Cancel
Save