shape_maker 0.0.3 copy "shape_maker: ^0.0.3" to clipboard
shape_maker: ^0.0.3 copied to clipboard

To make shapes like octagon, triangle and hexagon.

example/main.dart

import 'package:flutter/material.dart';
import 'package:shape_maker/shape_maker.dart';
import 'package:shape_maker/shape_maker_painter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Shape Maker Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Shape Maker Example'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: ShapeMaker(
          shapeType: ShapeType.hexagon,
          bgColor: Colors.blue,
        ),
      ),
    );
  }
}
10
likes
150
points
110
downloads

Publisher

unverified uploader

Weekly Downloads

To make shapes like octagon, triangle and hexagon.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on shape_maker