Skip to content

๐Ÿ–ผ๏ธ Easy mosaic effect for Flutter, add a mosaic effect to any widget

License

Notifications You must be signed in to change notification settings

AmosHuKe/flutter_mosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitHub stars Pub.dev likes

๐Ÿ““ Language: English | ไธญๆ–‡
๐ŸŽ Check out the Live Demo.



Flutter Mosaic

stable package dev package pub points CodeFactor codecov

Easy mosaic effect for Flutter!


preview1.gif

Check out the Live Demo


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

About

๐Ÿ–ผ๏ธ Easy mosaic effect for Flutter, add a mosaic effect to any widget

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •