interactive_bezier 0.0.2 copy "interactive_bezier: ^0.0.2" to clipboard
interactive_bezier: ^0.0.2 copied to clipboard

PlatformAndroid

Draw a wavy bezier background on-device and generate reusable widget code for your project

interactive_bezier #

Draw a wavy bezier background on-device and generate reusable widget code for your project.

Getting Started #

Embed the BezierDrawer widget into your app, like this:

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark(),
      home: Scaffold(
        body: LayoutBuilder(builder: (_, constraints) {
          return BezierDrawer(
            width: constraints.maxWidth,
            height: constraints.maxHeight,
            color: Colors.amber,
          );
        }),
      ),
    );
  }
}

This will provide you with an interactive version of the widget, letting you adjust the anchor points to your design's needs.

Once you're satisfied with the result, generate the code for the widget you designed by pressing the provided button.

1
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Draw a wavy bezier background on-device and generate reusable widget code for your project

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on interactive_bezier