Move status options under profile image in contacts view
continuous-integration/drone/pr Build is pending
Details
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:
parent
70a7b338b2
commit
16de726b47
|
@ -121,6 +121,7 @@ class _ContactsViewState extends State<ContactsView> {
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
endDrawerEnableOpenDragGesture: false,
|
endDrawerEnableOpenDragGesture: false,
|
||||||
drawerEnableOpenDragGesture: false,
|
drawerEnableOpenDragGesture: false,
|
||||||
|
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: Stack(children: [
|
leading: Stack(children: [
|
||||||
Align(
|
Align(
|
||||||
|
@ -153,18 +154,19 @@ class _ContactsViewState extends State<ContactsView> {
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
|
|
||||||
title: Row(children: [
|
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>(
|
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,
|
tooltip: AppLocalizations.of(context)!.availabilityStatusTooltip,
|
||||||
splashRadius: Material.defaultSplashRadius / 2,
|
splashRadius: Material.defaultSplashRadius / 2,
|
||||||
onSelected: (ProfileStatusMenu item) {
|
onSelected: (ProfileStatusMenu item) {
|
||||||
|
|
Loading…
Reference in New Issue