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(),
          ),
        ),
      ),
    );
  }
}