mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
feature: Details screen rework (#190)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
473e817e0f
commit
d2138da785
21 changed files with 462 additions and 394 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue