Update NavigationRailM3E implementation; update FAB and navigation sections to adapt to changes.
This commit is contained in:
parent
1cb404b4df
commit
83f5a02943
49 changed files with 1651 additions and 661 deletions
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
library progress_indicator_m3e;
|
||||
|
||||
export 'src/circular_progress_m3e.dart';
|
||||
export 'src/enums.dart';
|
||||
export 'src/linear_progress_m3e.dart';
|
||||
export 'src/circular_progress_m3e.dart';
|
||||
export 'src/progress_with_label_m3e.dart';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class Palette {
|
|||
|
||||
// Use theme roles; callers can override colors if needed.
|
||||
Color get active => cs.primary;
|
||||
Color get track => cs.onSurfaceVariant.withOpacity(0.24);
|
||||
Color get track => cs.onSurfaceVariant.withValues(alpha: 0.24);
|
||||
Color get bg => cs.surface;
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,8 @@ class LinearSpec {
|
|||
LinearSpec specForLinear({
|
||||
required LinearProgressM3ESize size,
|
||||
required ProgressM3EShape shape,
|
||||
}) => switch ((shape, size)) {
|
||||
}) =>
|
||||
switch ((shape, size)) {
|
||||
(ProgressM3EShape.flat, LinearProgressM3ESize.s) => const LinearSpec(
|
||||
trackHeight: 4,
|
||||
gap: 4,
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ class _CircularProgressIndicatorM3EState
|
|||
Widget build(BuildContext context) {
|
||||
final cs = Theme.of(context).colorScheme;
|
||||
final active = widget.activeColor ?? cs.primary;
|
||||
final track = widget.trackColor ?? cs.onSurfaceVariant.withOpacity(0.24);
|
||||
final track =
|
||||
widget.trackColor ?? cs.onSurfaceVariant.withValues(alpha: 0.24);
|
||||
final wantsWavy = widget.shape == ProgressM3EShape.wavy;
|
||||
final diameter =
|
||||
wantsWavy ? widget.size.diameterWavy : widget.size.diameterFlat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue