From 4a760a5612e4c313015f71d7beb8dd550ca898e9 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62367544+tilucasoli@users.noreply.github.com> Date: Tue, 27 Feb 2024 19:08:43 -0300 Subject: [PATCH] normalize named constructors --- lib/components/button/button.dart | 2 +- lib/components/button/button.style.dart | 2 +- lib/components/checkbox/checkbox.dart | 2 +- lib/components/checkbox/checkbox.style.dart | 2 +- lib/components/radio/radio.dart | 2 +- lib/components/radio/radio.style.dart | 2 +- lib/components/switch/switch.dart | 2 +- lib/components/switch/switch.style.dart | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/components/button/button.dart b/lib/components/button/button.dart index 9db9a25..dcab1d2 100644 --- a/lib/components/button/button.dart +++ b/lib/components/button/button.dart @@ -39,7 +39,7 @@ class RemixButton extends StatelessWidget final List variants; RemixButtonStyle buildStyle(List variants) { - final result = style == null ? RemixButtonStyle.baseForm() : style!; + final result = style == null ? RemixButtonStyle.base() : style!; return result.applyVariants(variants); } diff --git a/lib/components/button/button.style.dart b/lib/components/button/button.style.dart index f37e7f2..4863845 100644 --- a/lib/components/button/button.style.dart +++ b/lib/components/button/button.style.dart @@ -13,7 +13,7 @@ class RemixButtonStyle extends StyleRecipe { final Style icon; final Style label; - factory RemixButtonStyle.baseForm() { + factory RemixButtonStyle.base() { return RemixButtonStyle( container: _container(), icon: _icon(), diff --git a/lib/components/checkbox/checkbox.dart b/lib/components/checkbox/checkbox.dart index 02065de..f3a89b7 100644 --- a/lib/components/checkbox/checkbox.dart +++ b/lib/components/checkbox/checkbox.dart @@ -33,7 +33,7 @@ class RemixCheckbox extends StatelessWidget final List variants; RemixCheckboxStyle buildStyle(List variants) { - final result = style == null ? RemixCheckboxStyle.baseForm() : style!; + final result = style == null ? RemixCheckboxStyle.base() : style!; return result.applyVariants(variants); } diff --git a/lib/components/checkbox/checkbox.style.dart b/lib/components/checkbox/checkbox.style.dart index 175813a..ec356a7 100644 --- a/lib/components/checkbox/checkbox.style.dart +++ b/lib/components/checkbox/checkbox.style.dart @@ -15,7 +15,7 @@ class RemixCheckboxStyle extends StyleRecipe { final Style icon; final Style label; - factory RemixCheckboxStyle.baseForm() { + factory RemixCheckboxStyle.base() { return RemixCheckboxStyle( flexContainer: _flexContainerStyle(), innerContainer: _innerContainerStyle(), diff --git a/lib/components/radio/radio.dart b/lib/components/radio/radio.dart index 4d4f369..0ebc191 100644 --- a/lib/components/radio/radio.dart +++ b/lib/components/radio/radio.dart @@ -29,7 +29,7 @@ class RemixRadio extends StatelessWidget final List variants; RemixRadioStyle buildStyle(List variants) { - final result = style == null ? RemixRadioStyle.baseForm() : style!; + final result = style == null ? RemixRadioStyle.base() : style!; return result.applyVariants(variants); } diff --git a/lib/components/radio/radio.style.dart b/lib/components/radio/radio.style.dart index f5f09dc..cdbfa4c 100644 --- a/lib/components/radio/radio.style.dart +++ b/lib/components/radio/radio.style.dart @@ -16,7 +16,7 @@ class RemixRadioStyle extends StyleRecipe { final Style label; final Style row; - factory RemixRadioStyle.baseForm() { + factory RemixRadioStyle.base() { return RemixRadioStyle( outerContainer: _outerContainerStyle(), innerContainer: _innerContainerStyle(), diff --git a/lib/components/switch/switch.dart b/lib/components/switch/switch.dart index 65704d8..12a09fe 100644 --- a/lib/components/switch/switch.dart +++ b/lib/components/switch/switch.dart @@ -27,7 +27,7 @@ class RemixSwitch extends StatelessWidget final List variants; RemixSwitchStyle buildStyle(List variants) { - final result = style == null ? RemixSwitchStyle.baseForm() : style!; + final result = style == null ? RemixSwitchStyle.base() : style!; return result.applyVariants(variants); } diff --git a/lib/components/switch/switch.style.dart b/lib/components/switch/switch.style.dart index 09b0cf6..92d6ff9 100644 --- a/lib/components/switch/switch.style.dart +++ b/lib/components/switch/switch.style.dart @@ -12,7 +12,7 @@ class RemixSwitchStyle extends StyleRecipe { final Style outerFlexContainer; final Style innerContainer; - factory RemixSwitchStyle.baseForm() { + factory RemixSwitchStyle.base() { return RemixSwitchStyle( outerFlexContainer: _outerFlexContainerStyle(), innerContainer: _innerContainerStyle(),