WIP
This commit is contained in:
parent
61e3effa59
commit
8e035e00aa
|
@ -33,7 +33,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
double limitedInputTextSize = LimitedFontSizeUtil.getInputFontSize(context);
|
||||
bool isLoading = false;
|
||||
bool _isLoading = false;
|
||||
|
||||
return Builder(
|
||||
builder: (context) {
|
||||
|
@ -72,7 +72,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
|
|||
child: GestureDetector(
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
isLoading = true;
|
||||
_isLoading = true;
|
||||
});
|
||||
final selectedMedia =
|
||||
await selectMediaWithSourceBottomSheet(
|
||||
|
@ -120,7 +120,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
|
|||
showUploadMessage(context, message);
|
||||
} else {
|
||||
setState(() {
|
||||
isLoading = false;
|
||||
_isLoading = false;
|
||||
});
|
||||
final message = FFLocalizations.of(context)
|
||||
.getVariableText(
|
||||
|
@ -131,7 +131,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
|
|||
}
|
||||
} else {
|
||||
setState(() {
|
||||
isLoading = false;
|
||||
_isLoading = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -150,7 +150,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
|
|||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
isLoading
|
||||
_isLoading
|
||||
? SizedBox(
|
||||
width: 30.0,
|
||||
height: 30.0,
|
||||
|
|
Loading…
Reference in New Issue