flutter_shapes 0.3.0 copy "flutter_shapes: ^0.3.0" to clipboard
flutter_shapes: ^0.3.0 copied to clipboard

Paint various shapes on canvas.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'animation.dart';
import 'paint.dart';
import 'rotate.dart';
import 'types.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Shapes Demo',
      theme: ThemeData(
        primarySwatch: Colors.blueGrey,
      ),
      home: DefaultTabController(
        length: 4,
        child: Scaffold(
          appBar: AppBar(
            bottom: TabBar(
              tabs: const <Widget>[
                Tab(text: 'Types'),
                Tab(text: 'Animation'),
                Tab(text: 'Paint'),
                Tab(text: 'Rotate'),
              ],
            ),
            title: const Text('Flutter Shapes Demo'),
          ),
          body: TabBarView(
            children: <Widget>[
              TypesPage(),
              AnimationPage(),
              PaintPage(),
              RotatePage(),
            ],
            physics: const NeverScrollableScrollPhysics(),
          ),
        ),
      ),
    );
  }
}
48
likes
140
points
227
downloads

Publisher

verified publishertnantoka.com

Weekly Downloads

Paint various shapes on canvas.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_shapes