feature: Details screen rework (#190)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-12-27 15:21:47 +01:00 committed by GitHub
parent 473e817e0f
commit d2138da785
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 462 additions and 394 deletions

View file

@ -13,6 +13,7 @@ class FlatButton extends ConsumerWidget {
final BorderRadius? borderRadiusGeometry;
final Color? splashColor;
final double elevation;
final bool showFeedback;
final Clip clipBehavior;
const FlatButton({
this.child,
@ -23,6 +24,7 @@ class FlatButton extends ConsumerWidget {
this.borderRadiusGeometry,
this.splashColor,
this.elevation = 0,
this.showFeedback = true,
this.clipBehavior = Clip.none,
super.key,
});
@ -46,6 +48,7 @@ class FlatButton extends ConsumerWidget {
onSecondaryTapDown: onSecondaryTapDown,
borderRadius: borderRadiusGeometry ?? BorderRadius.circular(10),
splashColor: splashColor ?? Theme.of(context).colorScheme.primary.withOpacity(0.5),
hoverColor: showFeedback ? null : Colors.transparent,
splashFactory: InkSparkle.splashFactory,
),
),