june_sketch 0.0.3 june_sketch: ^0.0.3 copied to clipboard
A new Flutter project.
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),
),
),
),
);
}
}