// ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:flutter/material.dart'; import '../Ui/screens/widgets/AnimatedRoutes/blur_page_route.dart'; class PlayGround extends StatefulWidget { const PlayGround({super.key}); static Route route(RouteSettings routeSettings) { return BlurredRouter( builder: (_) => const PlayGround(), ); } @override State createState() => _PlayGroundState(); } class _PlayGroundState extends State { // Completer completer = Completer(); @override Widget build(BuildContext context) { return SafeArea( child: Scaffold( body: Center( child: STFLW(), ), ), ); } } class STFLW extends StatefulWidget { const STFLW({super.key}); @override State createState() => _STFLWState(); } class _STFLWState extends State { @override Widget build(BuildContext context) { return ClipPath( clipper: Hexagon(), child: Container( width: 200, height: 200, color: Colors.blue, ), ); } } class Hexagon extends CustomClipper { @override Path getClip(Size size) { Path path = Path(); double spaceFactor = size.width * 00.15; path.moveTo(spaceFactor, 0); // Timer.periodic(Duration(seconds: 2), (timer) { // print("HEHE"); // path.lineTo(size.width / (size.width / Random().nextInt(50)), // size.height / (size.height / Random().nextInt(50))); // }); path.close(); // path.lineTo(, y); return path; } @override bool shouldReclip(covariant CustomClipper oldClipper) { return true; } }