TF-248 Change floating button compose email

This commit is contained in:
dab246
2022-02-09 10:49:27 +07:00
committed by Dat H. Pham
parent c0f0b5875b
commit 879692aa54
6 changed files with 200 additions and 4 deletions
@@ -68,11 +68,20 @@ class ThreadView extends GetWidget<ThreadController> {
)
),
floatingActionButton: Obx(() => !controller.isSearchActive()
? FloatingActionButton(
? ScrollingFloatingButtonAnimated(
icon: SvgPicture.asset(imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill),
text: Padding(
padding: EdgeInsets.only(right: 10),
child: Text(
AppLocalizations.of(context).compose,
style: TextStyle(color: AppColor.colorTextButton, fontSize: 15.0, fontWeight: FontWeight.w500))
),
onPress: () => controller.composeEmailAction(),
scrollController: controller.listEmailController,
color: Colors.white,
elevation: 4.0,
child: new Icon(Icons.add),
backgroundColor: AppColor.appColor,
onPressed: () => controller.composeEmailAction())
width: 140,
animateIcon: false)
: SizedBox.shrink())
),
);