chore: Follow up user bottom sheet
This commit is contained in:
parent
16cf4e5e6c
commit
39a66f6786
1 changed files with 11 additions and 4 deletions
|
|
@ -96,7 +96,7 @@ class UserBottomSheetView extends StatelessWidget {
|
||||||
? null
|
? null
|
||||||
: [
|
: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
child: FloatingActionButton.small(
|
child: FloatingActionButton.small(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
onPressed: () => controller
|
onPressed: () => controller
|
||||||
|
|
@ -253,10 +253,17 @@ class UserBottomSheetView extends StatelessWidget {
|
||||||
errorText: controller.sendError
|
errorText: controller.sendError
|
||||||
?.toLocalizedString(context),
|
?.toLocalizedString(context),
|
||||||
hintText: L10n.of(context)!.sendMessages,
|
hintText: L10n.of(context)!.sendMessages,
|
||||||
suffixIcon: controller.isSending
|
suffix: controller.isSending
|
||||||
? const CircularProgressIndicator.adaptive(
|
? const SizedBox(
|
||||||
strokeWidth: 2,
|
width: 16,
|
||||||
|
height: 16,
|
||||||
|
child: CircularProgressIndicator.adaptive(
|
||||||
|
strokeWidth: 2,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
: null,
|
||||||
|
suffixIcon: controller.isSending
|
||||||
|
? null
|
||||||
: IconButton(
|
: IconButton(
|
||||||
icon: const Icon(Icons.send_outlined),
|
icon: const Icon(Icons.send_outlined),
|
||||||
onPressed: controller.sendAction,
|
onPressed: controller.sendAction,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue