flutter_mosaic 0.0.1 copy "flutter_mosaic: ^0.0.1" to clipboard
flutter_mosaic: ^0.0.1 copied to clipboard

Easy mosaic effect for Flutter! Add a mosaic effect to any widget.

GitHub stars Pub.dev likes

πŸ““ Language: English | δΈ­ζ–‡



Flutter Mosaic

stable package dev package pub points CodeFactor codecov top language

Easy mosaic effect for Flutter!



Table of contents πŸͺ„ #


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

or add flutter_mosaic to pubspec.yaml dependencies manually.

dependencies:
  flutter_mosaic: ^latest_version

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,
    ),
  ),
),

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
AmosHuKe

License πŸ“„ #

MIT License
Open sourced under the MIT license.

Β© AmosHuKe

4
likes
0
pub points
50%
popularity

Publisher

verified publisheramooos.com

Easy mosaic effect for Flutter! Add a mosaic effect to any widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_shaders

More

Packages that depend on flutter_mosaic