Skip to content

Commit

Permalink
style: Add physics prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed Apr 26, 2024
1 parent 5e158d8 commit b96aeb1
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 17 deletions.
2 changes: 0 additions & 2 deletions lib/src/styles/classic/classic_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ class _ClassicIndicatorState extends State<_ClassicIndicator>
return widget.textBuilder?.call(context, widget.state, _currentText) ??
Text(
_currentText,
// ignore: deprecated_member_use
style: widget.textStyle ?? Theme.of(context).textTheme.titleMedium,
);
}
Expand All @@ -368,7 +367,6 @@ class _ClassicIndicatorState extends State<_ClassicIndicator>
padding: const EdgeInsets.only(top: 4),
child: Text(
_messageText,
// ignore: deprecated_member_use
style: widget.messageStyle ?? Theme.of(context).textTheme.bodySmall,
),
);
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_bubbles/lib/easy_refresh_bubbles.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library easy_refresh_bubbles;

import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/physics.dart' as physics;
import 'package:easy_refresh/easy_refresh.dart';
import 'package:rive/rive.dart';

Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_bubbles/lib/src/bubbles_footer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BubblesFooter extends Footer {
double triggerOffset = _kDefaultBubblesTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = _kBubblesProcessed,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_bubbles/lib/src/bubbles_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BubblesHeader extends Header {
double triggerOffset = _kDefaultBubblesTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = _kBubblesProcessed,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library easy_refresh_halloween;

import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/physics.dart' as physics;
import 'package:easy_refresh/easy_refresh.dart';
import 'package:rive/rive.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HalloweenFooter extends Footer {
double triggerOffset = _kDefaultHalloweenTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HalloweenHeader extends Header {
double triggerOffset = _kDefaultHalloweenTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_skating/lib/easy_refresh_skating.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library easy_refresh_skating;

import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/physics.dart' as physics;
import 'package:easy_refresh/easy_refresh.dart';
import 'package:rive/rive.dart';

Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_skating/lib/src/skating_footer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SkatingFooter extends Footer {
bool clamping = false,
double triggerOffset = _kDefaultSkatingTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_skating/lib/src/skating_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SkatingHeader extends Header {
bool clamping = false,
double triggerOffset = _kDefaultSkatingTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_space/lib/easy_refresh_space.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library easy_refresh_space;

import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/physics.dart' as physics;
import 'package:easy_refresh/easy_refresh.dart';
import 'package:rive/rive.dart';

Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_space/lib/src/space_footer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SpaceFooter extends Footer {
double triggerOffset = _kDefaultSpaceTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_space/lib/src/space_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SpaceHeader extends Header {
double triggerOffset = _kDefaultSpaceTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_squats/lib/easy_refresh_squats.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library easy_refresh_squats;

import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/physics.dart' as physics;
import 'package:easy_refresh/easy_refresh.dart';
import 'package:rive/rive.dart';

Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_squats/lib/src/squats_footer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SquatsFooter extends Footer {
double triggerOffset = _kDefaultSquatsTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down
2 changes: 1 addition & 1 deletion styles/easy_refresh_squats/lib/src/squats_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SquatsHeader extends Header {
double triggerOffset = _kDefaultSquatsTriggerOffset,
IndicatorPosition position = IndicatorPosition.above,
Duration processedDuration = Duration.zero,
SpringDescription? spring,
physics.SpringDescription? spring,
SpringBuilder? readySpringBuilder,
bool springRebound = false,
FrictionFactor? frictionFactor,
Expand Down

0 comments on commit b96aeb1

Please sign in to comment.