The box decoration at https://github.com/gskinnerTeam/flutter-wonderous-app/blob/9e46bfa2e78a28abb93264e05b0241583ca3627c/lib/ui/screens/artifact/artifact_carousel/widgets/_collapsing_carousel_item.dart#L84 is going down the stencil-then-cover path instead of the ubersdf path.
actual result
Stencil then cover is used.
expected result
The UberSDF is used since it's a stroked rounded rect.
version
238d79a
reproduction
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class AppStyles {
const AppStyles();
final colors = const AppColors();
}
class AppColors {
const AppColors();
final offWhite = const Color(0xFFF8F9FA);
}
const $styles = AppStyles();
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Box Decoration Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
brightness: Brightness.dark,
scaffoldBackgroundColor: const Color(0xFF0F172A), // Premium dark theme
),
home: const Scaffold(
body: Center(
child: DecoratedBoxExample(),
),
),
);
}
}
class DecoratedBoxExample extends StatelessWidget {
const DecoratedBoxExample({super.key});
@override
Widget build(BuildContext context) {
return Container(
width: 280,
height: 80,
decoration: BoxDecoration(
shape: BoxShape.rectangle,
border: Border.all(color: $styles.colors.offWhite, width: 1),
borderRadius: const BorderRadius.all(Radius.circular(999)),
),
child: const Center(
child: Text(
'Box Decoration',
style: TextStyle(
color: Color(0xFFF8F9FA),
fontSize: 18,
fontWeight: FontWeight.w600,
letterSpacing: 1.2,
),
),
),
);
}
}
The box decoration at https://github.com/gskinnerTeam/flutter-wonderous-app/blob/9e46bfa2e78a28abb93264e05b0241583ca3627c/lib/ui/screens/artifact/artifact_carousel/widgets/_collapsing_carousel_item.dart#L84 is going down the stencil-then-cover path instead of the ubersdf path.
actual result
Stencil then cover is used.
expected result
The UberSDF is used since it's a stroked rounded rect.
version
238d79a
reproduction