@override
Widget construct(BuildContext context) {
return Scaffold(
physique:ref.watch(getData1Provider(widget.data1Id)).when(
information: (data1) {
return ref
.watch(getData2Provider(widget.data2Id))
.when(
information: (data2) {
return GestureDetector(
onTap: _stopWriting,
youngster: if (data1.isEnd && data2.isEnd)
getBottomAppBar(data1, data2)
);
},
error: (error, stackTrace) {
return ErrorText(error: error.toString());
},
loading: () => const Loader(),
);
},
error: (error, stackTrace) {
return ErrorText(error: error.toString());
},
loading: () => const Loader(),
),
);
}
That is the construct methodology of my ConsumerStatefulWidget. The getBottomAppBar is a operate which return a unique bottomAppbar utilizing conditional assertion because the state of the data1 and data2. However the bottomAppbar does not seem till I faucet the display screen. How can I repair this?