forked from yaso_meth/mih-project
Merge pull request #60 from yaso-meth/BUG-Screen-flicker-post-bio-auth
move data get from init state to build
This commit is contained in:
@@ -84,12 +84,13 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
|
||||
@override
|
||||
void initState() {
|
||||
//profile = getProfile();
|
||||
profile = MIHApiCalls().getProfile(amount);
|
||||
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
profile = MIHApiCalls().getProfile(amount);
|
||||
return FutureBuilder(
|
||||
future: profile,
|
||||
builder: (BuildContext context, snapshot) {
|
||||
|
||||
Reference in New Issue
Block a user