clipped_shapes 2.2.1 clipped_shapes: ^2.2.1 copied to clipboard
Container widgets with a shaped border that crops the content and keeps the touch feedback on the foreground.
import 'package:flutter/material.dart';
import 'demo_screen.dart';
void main() {
runApp(
const MyApp(),
);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Clipped Shapes Demo',
theme: ThemeData(
primarySwatch: Colors.teal,
),
home: const DemoScreen(),
);
}