You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'package:flutter/material.dart';
import'package:after_layout/after_layout.dart';
classIntroPageextendsStatefulWidget {
@override_IntroPageStatecreateState() =>_IntroPageState();
}
class_IntroPageStateextendsState<IntroPage> withAfterLayoutMixin<IntroPage> {
BuildContext ctx;
@overrideWidgetbuild(BuildContext context) {
ctx = context;
returnnewScaffold(body:newContainer(color:Colors.red));
}
@overridevoidafterFirstLayout(BuildContext context) {
// Calling the same function "after layout" to resolve the issue.firstRun();
}
Future<Null> firstRun() async {
print("first run");
}
}
please healp! I keep getting 'initState' is inherited as a getter (from 'State') and also a method (from 'AfterLayoutMixin').
thats my page code above.
The text was updated successfully, but these errors were encountered:
please healp! I keep getting 'initState' is inherited as a getter (from 'State') and also a method (from 'AfterLayoutMixin').
thats my page code above.
The text was updated successfully, but these errors were encountered: