BytesToTexture extension
Provides toSeamlessTexture that considers this Uin8List
as bytes that
describe 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.
- For a horizontally-tiling texture using Repeat.mirrorX, see toSeamlessRow.
- For a vertically-tiling texture using Repeat.mirrorY, see toSeamlessColumn.
- 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 Uint8List
as bytes that describe 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 Uint8List
as bytes that describe 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 Uint8List
as bytes that describe an image and returns an ImageToo widget.