Skip to content

Instantly share code, notes, and snippets.

@duytq94
Last active February 18, 2024 08:57
Show Gist options
  • Save duytq94/226d2cbc948c08010ae1fb769585be4a to your computer and use it in GitHub Desktop.
Save duytq94/226d2cbc948c08010ae1fb769585be4a to your computer and use it in GitHub Desktop.
@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