TF-765 Compose button is not shown properly in mobile
This commit is contained in:
+1
-17
@@ -67,9 +67,6 @@ class _ScrollingFloatingButtonAnimatedState
|
|||||||
/// Boolean value to indicate when scroll view is on top
|
/// Boolean value to indicate when scroll view is on top
|
||||||
bool _onTop = true;
|
bool _onTop = true;
|
||||||
|
|
||||||
/// Value to indicate when to show the child widget
|
|
||||||
bool _visibleText = false;
|
|
||||||
|
|
||||||
/// Controller for icon animation
|
/// Controller for icon animation
|
||||||
late AnimationController _animationController;
|
late AnimationController _animationController;
|
||||||
|
|
||||||
@@ -135,13 +132,6 @@ class _ScrollingFloatingButtonAnimatedState
|
|||||||
duration: widget.duration!,
|
duration: widget.duration!,
|
||||||
height: widget.height,
|
height: widget.height,
|
||||||
width: _onTop ? widget.width : widget.height,
|
width: _onTop ? widget.width : widget.height,
|
||||||
onEnd: () {
|
|
||||||
if (mounted) {
|
|
||||||
setState(() {
|
|
||||||
_visibleText = !_visibleText;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(widget.height! / 2))),
|
decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(widget.height! / 2))),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(widget.height! / 2)),
|
borderRadius: BorderRadius.all(Radius.circular(widget.height! / 2)),
|
||||||
@@ -167,13 +157,7 @@ class _ScrollingFloatingButtonAnimatedState
|
|||||||
),
|
),
|
||||||
...(_onTop
|
...(_onTop
|
||||||
? [
|
? [
|
||||||
Expanded(
|
Expanded(child: widget.text!)
|
||||||
child: AnimatedOpacity(
|
|
||||||
opacity: !_visibleText ? 1 : 0,
|
|
||||||
duration: const Duration(milliseconds: 100),
|
|
||||||
child: widget.text!,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -433,9 +433,15 @@ class ThreadView extends GetWidget<ThreadController> with AppLoaderMixin,
|
|||||||
alignment: Alignment.bottomRight,
|
alignment: Alignment.bottomRight,
|
||||||
child: ScrollingFloatingButtonAnimated(
|
child: ScrollingFloatingButtonAnimated(
|
||||||
icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill),
|
icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill),
|
||||||
text: Padding(padding: const EdgeInsets.only(right: 10),
|
text: Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 16),
|
||||||
child: Text(AppLocalizations.of(context).compose,
|
child: Text(AppLocalizations.of(context).compose,
|
||||||
style: const TextStyle(color: AppColor.colorTextButton, fontSize: 15.0, fontWeight: FontWeight.w500))),
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
|
style: const TextStyle(
|
||||||
|
color: AppColor.colorTextButton,
|
||||||
|
fontSize: 15.0,
|
||||||
|
fontWeight: FontWeight.w500))),
|
||||||
onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()),
|
onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()),
|
||||||
scrollController: controller.listEmailController,
|
scrollController: controller.listEmailController,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
|||||||
Reference in New Issue
Block a user