afterFirstLayout abstract method

FutureOr<void> afterFirstLayout(
  1. BuildContext context
)

Brings functionality to execute code after the first layout of a widget has been performed, i.e. after the first frame has been displayed.

If you want to display a widget that depends on the layout, such as a Dialog or BottomSheet, you can not use that widget in initState instead of that you can use this method

Implementation

FutureOr<void> afterFirstLayout(BuildContext context);