june_sketch 0.0.3 copy "june_sketch: ^0.0.3" to clipboard
june_sketch: ^0.0.3 copied to clipboard

A new Flutter project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:june_sketch/sketch_border.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Padding(
          padding: EdgeInsets.all(10),
          child: Container(
            width: 200,
            height: 200,
            decoration: BoxDecoration(
                borderRadius: const BorderRadius.all(Radius.circular(30)),
                border: SketchBorder(
                  slide: const BorderSide(
                    color: Colors.red,
                    width: 5,
                  ),
                ),
                shape: BoxShape.rectangle),
          ),
        ),
      ),
    );
  }
}
0
likes
130
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on june_sketch