fixed overwrite on internal copy, DST drift in widget anchors, inline errors without controller and removed dead room lookup
This commit is contained in:
@@ -27,6 +27,7 @@ class AsyncTextButton extends StatelessWidget {
|
||||
errorBuilder: errorBuilder,
|
||||
onError: onError,
|
||||
onSuccess: onSuccess,
|
||||
showInlineError: showInlineError,
|
||||
builder: (context, busy, handler) {
|
||||
final content = busy
|
||||
? _leadingLabel(
|
||||
@@ -37,8 +38,7 @@ class AsyncTextButton extends StatelessWidget {
|
||||
)
|
||||
: child;
|
||||
final button = TextButton(onPressed: handler, child: content);
|
||||
if (!showInlineError) return button;
|
||||
return _InlineErrorWrapper(controller: controller, child: button);
|
||||
return button;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user