Format shared Material primitive integration

This commit is contained in:
2026-11-11 21:17:32 +00:00
parent 16dab6d74e
commit 16f4e43ddc
12 changed files with 35 additions and 38 deletions
+11 -11
View File
@@ -86,8 +86,8 @@ class FloatingTabButton extends StatelessWidget {
}
String _tabLabel(BuildContext context) => MaterialLocalizations.of(
context,
).tabLabel(tabIndex: index + 1, tabCount: count);
context,
).tabLabel(tabIndex: index + 1, tabCount: count);
({Color tint, Color selectedIcon, Color icon}) _colors(BuildContext context) {
final scheme = Theme.of(context).colorScheme;
@@ -109,15 +109,15 @@ class FloatingTabButton extends StatelessWidget {
shape: const CircleBorder(),
);
final Widget fill = Ink(
key: fillKey,
decoration: decoration,
child: InkResponse(
onTap: onTap,
customBorder: const CircleBorder(),
containedInkWell: true,
highlightShape: BoxShape.circle,
),
);
key: fillKey,
decoration: decoration,
child: InkResponse(
onTap: onTap,
customBorder: const CircleBorder(),
containedInkWell: true,
highlightShape: BoxShape.circle,
),
);
Widget glyph = IconTheme.merge(
data: IconThemeData(
size: iconSize,
+1 -3
View File
@@ -22,9 +22,7 @@ class AdaptiveResizeGrip extends StatelessWidget {
color: Theme.of(context).colorScheme.surfaceContainerHigh,
borderRadius: BorderRadius.circular(8),
border: emphasized
? Border.all(
color: Theme.of(context).colorScheme.primary,
)
? Border.all(color: Theme.of(context).colorScheme.primary)
: null,
),
child: Padding(
@@ -122,5 +122,4 @@ class SegmentedMoreButton extends StatelessWidget {
),
);
}
}
@@ -5,8 +5,7 @@ import 'segmented_bar_motion.dart';
/// The smallest height of every piece of a [SegmentedBar]: the platform's
/// minimum touch target, so a round Back is a circle.
double segmentedPieceHeight(bool cupertino) =>
kMinInteractiveDimension;
double segmentedPieceHeight(bool cupertino) => kMinInteractiveDimension;
/// One rounded piece of a segmented bar: a [GlassPill] at least the
/// platform's touch-target size.
@@ -21,6 +21,7 @@ class BarIconButton extends StatelessWidget {
});
final IconData icon;
/// Retained for source compatibility; Material rendering always uses [icon].
final IconData? cupertinoIcon;