modal menus design fixes
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
c3848553d7
commit
8429907650
|
@ -257,31 +257,40 @@ class _ContactsViewState extends State<ContactsView> {
|
||||||
padding: EdgeInsets.all(10.0),
|
padding: EdgeInsets.all(10.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.min,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
|
||||||
Spacer(),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: AppLocalizations.of(context)!.tooltipAddContact,
|
message: AppLocalizations.of(context)!.tooltipAddContact,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
child: Text(AppLocalizations.of(context)!.addContact, semanticsLabel: AppLocalizations.of(context)!.addContact),
|
style: ElevatedButton.styleFrom(
|
||||||
|
minimumSize: Size.fromWidth(double.infinity),
|
||||||
|
maximumSize: Size.fromWidth(400),
|
||||||
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
AppLocalizations.of(context)!.addContact,
|
||||||
|
semanticsLabel: AppLocalizations.of(context)!.addContact,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_pushAddContact(false);
|
_pushAddContact(false);
|
||||||
},
|
},
|
||||||
))),
|
))),
|
||||||
Spacer()
|
|
||||||
]),
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
|
||||||
Spacer(),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: groupsEnabled ? AppLocalizations.of(context)!.addServerTooltip : AppLocalizations.of(context)!.thisFeatureRequiresGroupExpermientsToBeEnabled,
|
message: groupsEnabled ? AppLocalizations.of(context)!.addServerTooltip : AppLocalizations.of(context)!.thisFeatureRequiresGroupExpermientsToBeEnabled,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
child: Text(AppLocalizations.of(context)!.addServerTitle, semanticsLabel: AppLocalizations.of(context)!.addServerTitle),
|
style: ElevatedButton.styleFrom(
|
||||||
|
minimumSize: Size.fromWidth(double.infinity),
|
||||||
|
maximumSize: Size.fromWidth(400),
|
||||||
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))),
|
||||||
|
),
|
||||||
|
child: Text(AppLocalizations.of(context)!.addServerTitle, semanticsLabel: AppLocalizations.of(context)!.addServerTitle, textAlign: TextAlign.center),
|
||||||
onPressed: groupsEnabled
|
onPressed: groupsEnabled
|
||||||
? () {
|
? () {
|
||||||
_pushAddContact(false);
|
_pushAddContact(false);
|
||||||
|
@ -289,26 +298,25 @@ class _ContactsViewState extends State<ContactsView> {
|
||||||
: null,
|
: null,
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
Spacer()
|
|
||||||
]),
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
|
||||||
Spacer(),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: groupsEnabled ? AppLocalizations.of(context)!.createGroupTitle : AppLocalizations.of(context)!.thisFeatureRequiresGroupExpermientsToBeEnabled,
|
message: groupsEnabled ? AppLocalizations.of(context)!.createGroupTitle : AppLocalizations.of(context)!.thisFeatureRequiresGroupExpermientsToBeEnabled,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
child: Text(AppLocalizations.of(context)!.createGroupTitle, semanticsLabel: AppLocalizations.of(context)!.createGroupTitle),
|
style: ElevatedButton.styleFrom(
|
||||||
|
minimumSize: Size.fromWidth(double.infinity),
|
||||||
|
maximumSize: Size.fromWidth(400),
|
||||||
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))),
|
||||||
|
),
|
||||||
|
child: Text(AppLocalizations.of(context)!.createGroupTitle, semanticsLabel: AppLocalizations.of(context)!.createGroupTitle, textAlign: TextAlign.center),
|
||||||
onPressed: groupsEnabled
|
onPressed: groupsEnabled
|
||||||
? () {
|
? () {
|
||||||
_pushAddContact(true);
|
_pushAddContact(true);
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
))),
|
))),
|
||||||
Spacer()
|
|
||||||
]),
|
|
||||||
],
|
],
|
||||||
))),
|
))),
|
||||||
)));
|
)));
|
||||||
|
|
|
@ -194,29 +194,45 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
|
||||||
padding: EdgeInsets.all(10.0),
|
padding: EdgeInsets.all(10.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
SizedBox(
|
||||||
Spacer(),
|
height: 20,
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
child: Text(AppLocalizations.of(context)!.addProfileTitle, semanticsLabel: AppLocalizations.of(context)!.addProfileTitle),
|
style: ElevatedButton.styleFrom(
|
||||||
|
minimumSize: Size(double.infinity, 20),
|
||||||
|
maximumSize: Size(400, 20),
|
||||||
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
AppLocalizations.of(context)!.addProfileTitle,
|
||||||
|
semanticsLabel: AppLocalizations.of(context)!.addProfileTitle,
|
||||||
|
style: TextStyle(fontWeight: FontWeight.bold),
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_pushAddProfile(context);
|
_pushAddProfile(context);
|
||||||
},
|
},
|
||||||
)),
|
)),
|
||||||
Spacer()
|
|
||||||
]),
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
|
|
||||||
Spacer(),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: AppLocalizations.of(context)!.importProfileTooltip,
|
message: AppLocalizations.of(context)!.importProfileTooltip,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
child: Text(AppLocalizations.of(context)!.importProfile, semanticsLabel: AppLocalizations.of(context)!.importProfile),
|
style: ElevatedButton.styleFrom(
|
||||||
|
minimumSize: Size(double.infinity, 20),
|
||||||
|
maximumSize: Size(400, 20),
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
side: BorderSide(color: Provider.of<Settings>(context).theme.defaultButtonActiveColor, width: 2.0),
|
||||||
|
borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))),
|
||||||
|
primary: Provider.of<Settings>(context).theme.backgroundMainColor,
|
||||||
|
),
|
||||||
|
child:
|
||||||
|
Text(AppLocalizations.of(context)!.importProfile, semanticsLabel: AppLocalizations.of(context)!.importProfile, style: TextStyle(fontWeight: FontWeight.bold)),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// 10GB profiles should be enough for anyone?
|
// 10GB profiles should be enough for anyone?
|
||||||
showFilePicker(context, MaxGeneralFileSharingSize, (file) {
|
showFilePicker(context, MaxGeneralFileSharingSize, (file) {
|
||||||
|
@ -235,8 +251,9 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
|
||||||
}, () {}, () {});
|
}, () {}, () {});
|
||||||
},
|
},
|
||||||
))),
|
))),
|
||||||
Spacer()
|
SizedBox(
|
||||||
]),
|
height: 20,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
))),
|
))),
|
||||||
)));
|
)));
|
||||||
|
|
Loading…
Reference in New Issue