SafeLocalImage constructor

const SafeLocalImage({
  1. Key? key,
  2. required String path,
  3. double? height,
  4. double? width,
  5. BoxFit fit = BoxFit.cover,
  6. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(0)),
  7. bool showSettingsButton = true,
  8. String? placeholderText,
  9. TextStyle? textStyle,
  10. Icon? icon,
  11. bool verticalLayout = false,
})

Creates a SafeLocalImage widget that attempts to load a local image and handles missing files or permission issues.

Implementation

const SafeLocalImage({
  Key? key,
  required this.path,
  this.height,
  this.width,
  this.fit = BoxFit.cover,
  this.borderRadius = const BorderRadius.all(Radius.circular(0)),
  this.showSettingsButton = true,
  this.placeholderText,
  this.textStyle,
  this.icon,
  this.verticalLayout = false,
}) : super(key: key);