shape_patterns 0.0.4
shape_patterns: ^0.0.4

Flutter Android iOS web

a flutter widget for making patterns using geometric shapes

shape_patterns #

a flutter widget for making patterns from shapes

Usage #

Import the following dependencies

import 'package:shape_patterns/shape.dart';
import 'package:shape_patterns/shape_pattern.dart';

Create a pattern widget like this

ShapePattern(
        shapeName: ShapeNames.slash,
        numberOfRows: 8,
        numberOfColumns: 5,
        shapeMargins: 10.0,
        shapeColor: Colors.grey[100],
        shapeSize: 40.0,
      ),

Advanced Usage #

You can replace normal Scaffold widget with PatternScaffold like this so

import 'package:shape_patterns/pattern_scaffold.dart';

PatternScaffold(
      pattern: ShapePattern(
        shapeName: ShapeNames.triangle,
        angle: 0.7,
        numberOfRows: 8,
        numberOfColumns: 5,
        shapeMargins: 30.0,
        shapeColor: Colors.grey[100],
        shapeSize: 40.0,
      ),
      appBar: AppBar(
        title: Text('Shape Patterns Example'),
      ),
    );
0
likes
70
pub points
0%
popularity

a flutter widget for making patterns using geometric shapes

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

barbaricgamester@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on shape_patterns