FileToTexture extension

Provides toSeamlessTexture that considers this File as a file that leads to an image and returns an ImageToo widget.

The repeat property on this returned widget is set to Repeat.mirror which has the effect of creating a seamless, edge-to-edge texture from any image that will fill the space of the widget.

on

Methods

toSeamlessColumn({double? width, double? height, double scale = 1.0, Offset offset = Offset.zero, Color? color, BlendMode? blendMode, FilterQuality quality = FilterQuality.low, bool isAntiAlias = false, bool isAsset = false, AssetBundle? bundle, String? package}) ImageToo
A method that considers this File as a file that leads to an image and returns an ImageToo widget.
toSeamlessRow({double? width, double? height, double scale = 1.0, Offset offset = Offset.zero, Color? color, BlendMode? blendMode, FilterQuality quality = FilterQuality.low, bool isAntiAlias = false, bool isAsset = false, AssetBundle? bundle, String? package}) ImageToo
A method that considers this File as a file that leads to an image and returns an ImageToo widget.
toSeamlessTexture({double? width, double? height, double scale = 1.0, Offset offset = Offset.zero, Color? color, BlendMode? blendMode, FilterQuality quality = FilterQuality.low, bool isAntiAlias = false, AssetBundle? bundle, String? package}) ImageToo
A method that considers this File as a file that leads to an image and returns an ImageToo widget.