Last active
February 18, 2024 08:57
-
-
Save duytq94/226d2cbc948c08010ae1fb769585be4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text( | |
this.widget.arguments.peerNickname, | |
style: TextStyle(color: ColorConstants.primaryColor), | |
), | |
centerTitle: true, | |
), | |
body: SafeArea( | |
child: PopScope( | |
child: Stack( | |
children: [ | |
Column( | |
children: [ | |
_buildListMessage(), | |
_isShowSticker ? _buildStickers() : SizedBox.shrink(), | |
_buildInput(), | |
], | |
), | |
Positioned( | |
child: _isLoading ? LoadingView() : SizedBox.shrink(), | |
), | |
], | |
), | |
canPop: false, | |
onPopInvoked: (didPop) { | |
if (didPop) return; | |
_onBackPress(); | |
}, | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment