Move status options under profile image in contacts view
continuous-integration/drone/pr Build is pending Details

Also has the impact of resolving space contention when resized very small.
This commit is contained in:
Sarah Jamie Lewis 2023-09-11 14:58:39 -07:00
parent 70a7b338b2
commit 16de726b47
1 changed files with 12 additions and 10 deletions

View File

@ -121,6 +121,7 @@ class _ContactsViewState extends State<ContactsView> {
child: Scaffold(
endDrawerEnableOpenDragGesture: false,
drawerEnableOpenDragGesture: false,
appBar: AppBar(
leading: Stack(children: [
Align(
@ -153,18 +154,19 @@ class _ContactsViewState extends State<ContactsView> {
}),
)
]),
title: Row(children: [
ProfileImage(
imagePath: Provider.of<Settings>(context).isExperimentEnabled(ImagePreviewsExperiment)
? Provider.of<ProfileInfoState>(context).imagePath
: Provider.of<ProfileInfoState>(context).defaultImagePath,
diameter: 42,
border: Provider.of<ProfileInfoState>(context).getBorderColor(Provider.of<Settings>(context).theme),
badgeTextColor: Colors.red,
badgeColor: Colors.red,
),
PopupMenuButton<ProfileStatusMenu>(
icon: Icon(Icons.online_prediction),
icon: ProfileImage(
imagePath: Provider.of<Settings>(context).isExperimentEnabled(ImagePreviewsExperiment)
? Provider.of<ProfileInfoState>(context).imagePath
: Provider.of<ProfileInfoState>(context).defaultImagePath,
diameter: 42,
border: Provider.of<ProfileInfoState>(context).getBorderColor(Provider.of<Settings>(context).theme),
badgeTextColor: Colors.red,
badgeColor: Colors.red,
),
iconSize: 42,
tooltip: AppLocalizations.of(context)!.availabilityStatusTooltip,
splashRadius: Material.defaultSplashRadius / 2,
onSelected: (ProfileStatusMenu item) {