interactive_bezier 0.0.2 icon indicating copy to clipboard operation
interactive_bezier: ^0.0.2 copied to clipboard

PlatformAndroid

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

example/lib/main.dart

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,
            startFraction: 0.6,
            endFraction: 0.4,
            firstStopRelativeOffset: Offset(0.3, 0.1),
            secondStopRelativeOffset: Offset(0.3, 0.12),
            firstControlRelativeOffset: Offset(0.5, -.5),
            secondControlRelativeOffset: Offset(0.5, 1.1),
            lastControlRelativeOffset: Offset(0.5, 1.5),
          );
        }),
      ),
    );
  }
}
0
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)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on interactive_bezier