Last updated:
0 purchases
flutter mosaic
π Language: English | δΈζ
π Check out the Live Demo.
Flutter Mosaic
Easy mosaic effect for Flutter!
Check out the Live Demo
Table of contents πͺ #
Features
Install
Versions compatibility
Add package
Usage
Mosaic
Contributors
License
Features β¨ #
π Shader effect
π¦ Any widget
πΌοΈ Customize the width and height of each mosaic block
π¨ Customize the number of samples in each mosaic block
Install π― #
Versions compatibility π¦ #
Flutter
3.7.0+
3.10.0+
flutter_mosaic 0.0.1+
β
(Web β)
β
Add package π¦ #
Run this command with Flutter,
$ flutter pub add flutter_mosaic
copied to clipboard
or add flutter_mosaic to pubspec.yaml dependencies manually.
dependencies:
flutter_mosaic: ^latest_version
copied to clipboard
Usage π #
Example: flutter_mosaic/example
Mosaic π¦ #
/// Import flutter_mosaic
import 'package:flutter_mosaic/flutter_mosaic.dart';
Mosaic(
mosaicSize: Size(6.0, 6.0),
child: Text(
'Flutter Mosaic',
style: TextStyle(
fontSize: 50,
fontWeight: FontWeight.bold,
),
),
),
copied to clipboard
Parameter
Type
Default
Description
enabled
bool
true
Enable mosaic.
mosaicSize required
Size
-
Each mosaic block size.
sampleCount
SampleCount
SampleCount.s4
Number of samples in each mosaic block.
child required
Widget
-
Target widget (apply mosaic).
Contributors β¨ #
AmosHuKe
License π #
Open sourced under the MIT license.
Β© AmosHuKe
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.