Fixes exception in platform_channels (#1480)

pull/1481/head
Rulong Chen(陈汝龙) 3 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>(); final scaffoldKey = GlobalKey<ScaffoldState>();
@override @override
void initState() { void didChangeDependencies() {
super.initState(); super.didChangeDependencies();
// Receives a string of json object from the platform and converts it // Receives a string of json object from the platform and converts it
// to PetModel. // to PetModel.
final scaffoldMessenger = ScaffoldMessenger.of(context); final scaffoldMessenger = ScaffoldMessenger.of(context);

Loading…
Cancel
Save