Move status options under profile image in contacts view #722
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue