diff --git a/lib/src/build.dart b/lib/src/build.dart index bd999e9..fa8e4cb 100644 --- a/lib/src/build.dart +++ b/lib/src/build.dart @@ -247,14 +247,16 @@ class _TxtBuildEditableState extends State { _placeholderStyle = TextStyle( fontWeight: widget.textModel?.textStyle?.fontWeight, fontSize: widget.textModel?.textStyle?.fontSize, - color: widget.textModel?.textStyle?.color?.withOpacity(0.7) ?? Colors.grey, + color: + widget.textModel?.textStyle?.color?.withOpacity(0.7) ?? Colors.grey, fontStyle: widget.textModel?.textStyle?.fontStyle ?? FontStyle.normal, fontFamily: widget.textModel?.textStyle?.fontFamily, fontFamilyFallback: widget.textModel?.textStyle?.fontFamilyFallback, letterSpacing: widget.textModel?.textStyle?.letterSpacing, wordSpacing: widget.textModel?.textStyle?.wordSpacing, ); - _placehodlerController = TextEditingController(text: widget.textModel?.placeholder); + _placehodlerController = + TextEditingController(text: widget.textModel?.placeholder); } return EditableText( diff --git a/lib/src/model.dart b/lib/src/model.dart index 37c6dcc..e7381ca 100644 --- a/lib/src/model.dart +++ b/lib/src/model.dart @@ -50,7 +50,7 @@ class BackgroundModel with ChangeNotifier { /// Does not work together with `rotate()`. void blur(double blur) { if (blur < 0) throw ('Blur cannot be negative: $blur'); - _blur = blur; + _blur = blur; notifyListeners(); } @@ -111,7 +111,7 @@ class AlignmentModel with ChangeNotifier { void center() => _updateAlignment(Alignment.center); void centerRight() => _updateAlignment(Alignment.centerRight); - void coordinate(double x, double y) => _updateAlignment(Alignment(x,y)); + void coordinate(double x, double y) => _updateAlignment(Alignment(x, y)); void _updateAlignment(AlignmentGeometry alignment) { _alignment = alignment; @@ -130,9 +130,11 @@ class OverflowModel with ChangeNotifier { void hidden() => _updateOverflow(OverflowType.hidden); - void scrollable([Axis direction = Axis.vertical]) => _updateOverflow(OverflowType.scroll, direction); + void scrollable([Axis direction = Axis.vertical]) => + _updateOverflow(OverflowType.scroll, direction); - void visible([Axis direction = Axis.vertical]) => _updateOverflow(OverflowType.visible, direction); + void visible([Axis direction = Axis.vertical]) => + _updateOverflow(OverflowType.visible, direction); void _updateOverflow(OverflowType overflow, [Axis direction]) { _overflow = overflow; @@ -187,7 +189,8 @@ class StyleModel { _replace(backgroundColor, intruder?.backgroundColor, override); backgroundBlur = _replace(backgroundBlur, intruder?.backgroundBlur, override); - backgroundImage = _replace(backgroundImage, intruder?.backgroundImage, override); + backgroundImage = + _replace(backgroundImage, intruder?.backgroundImage, override); padding = _replace(padding, intruder?.padding, override); margin = _replace(margin, intruder?.margin, override); gradient = _replace(gradient, intruder?.gradient, override); @@ -389,7 +392,7 @@ class TextModel { TextInputType keyboardType; String placeholder; bool obscureText; - + void Function(String) onChange; void Function(bool focus) onFocusChange; void Function(TextSelection, SelectionChangedCause) @@ -455,4 +458,4 @@ class TextAlignModel with ChangeNotifier { _textAlign = textAlign; notifyListeners(); } -} \ No newline at end of file +} diff --git a/lib/src/style.dart b/lib/src/style.dart index acdf9b1..5c0f501 100644 --- a/lib/src/style.dart +++ b/lib/src/style.dart @@ -705,9 +705,10 @@ class TxtStyle extends StyleClass { @override void _addListeners() { super._addListeners(); - textAlign = TextAlignModel()..addListener(() { - _textModel?.textAlign = textAlign?.exportTextAlign; - }); + textAlign = TextAlignModel() + ..addListener(() { + _textModel?.textAlign = textAlign?.exportTextAlign; + }); } final TextModel _textModel = TextModel();