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

A Flutter package for custom painting.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:custom_polygon_package/custom_polygon_package.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Polygon Package Testing...',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: HomeScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Polygons', style: TextStyle(fontWeight: FontWeight.bold)),
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: Center(
        child: CustomPolygonWidget(),
      ),
    );
  }
}
2
likes
140
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for custom painting.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on custom_polygon_package