Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

loading builder in flutter

Image(
  ...
  frameBuilder: (BuildContext context, Widget child, int frame, bool wasSynchronouslyLoaded) {
    return Padding(
      padding: EdgeInsets.all(8.0),
      child: child,
    );
  },
  loadingBuilder: (BuildContext context, Widget child, ImageChunkEvent loadingProgress) {
    return Center(child: child);
  },
)
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #loading #builder #flutter
ADD COMMENT
Topic
Name
3+1 =