Skip to content

Commit

Permalink
chore: fix typos (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro authored Nov 30, 2023
1 parent 2f81162 commit 37c71f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["**/ios/**", "**/macos/**", "**/*theme.json"]
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ abstract class AbstractButtonStyleEditor<T extends AbstractButtonStyleCubit>
Widget buildShapeBorderRadiusTextField(BuildContext context) {
final border = context.watch<T>().state.style?.shape?.resolve({}) ??
context.read<T>().defaultShape;
late final BorderRadiusGeometry? radiusGeomtry;
late final BorderRadiusGeometry? radiusGeometry;

if (border is BeveledRectangleBorder) {
radiusGeomtry = border.borderRadius;
radiusGeometry = border.borderRadius;
} else if (border is ContinuousRectangleBorder) {
radiusGeomtry = border.borderRadius;
radiusGeometry = border.borderRadius;
} else if (border is RoundedRectangleBorder) {
radiusGeomtry = border.borderRadius;
radiusGeometry = border.borderRadius;
} else {
radiusGeomtry = null;
radiusGeometry = null;
}

return MyTextFormField(
Expand All @@ -73,8 +73,8 @@ abstract class AbstractButtonStyleEditor<T extends AbstractButtonStyleCubit>
enabled: border is BeveledRectangleBorder ||
border is ContinuousRectangleBorder ||
border is RoundedRectangleBorder,
initialValue: radiusGeomtry is BorderRadius
? radiusGeomtry.bottomLeft.x.toString()
initialValue: radiusGeometry is BorderRadius
? radiusGeometry.bottomLeft.x.toString()
: null,
onChanged: context.read<T>().shapeBorderRadiusChanged,
);
Expand Down
2 changes: 1 addition & 1 deletion test/slider_theme/slider_theme_editor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void main() {
});
});

group('valud indicator color picker', () {
group('value indicator color picker', () {
const key = 'sliderThemeEditor_valueIndicatorColorPicker';

testWidgets('render widget', (tester) async {
Expand Down

0 comments on commit 37c71f1

Please sign in to comment.