Format shared Material primitive integration
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user