update staff list, add pin editor and privilege editor
This commit is contained in:
@@ -72,7 +72,7 @@ class _StaffEditorState extends State<StaffEditor> {
|
||||
}),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 8.0),
|
||||
child: Icon(p.iconData, size: 50, color: Colors.black38),
|
||||
child: Icon(p.iconData, size: 30, color: Colors.black38),
|
||||
),
|
||||
Expanded(
|
||||
child: Column(
|
||||
@@ -80,10 +80,10 @@ class _StaffEditorState extends State<StaffEditor> {
|
||||
children: <Widget>[
|
||||
new Text(
|
||||
p.name ?? "",
|
||||
style: TextStyle(fontSize: 15.0, color: primaryColor),
|
||||
style: TextStyle(fontSize: 15.0, color: Colors.black),
|
||||
),
|
||||
Text(p.desc ?? "",
|
||||
style: TextStyle(fontSize: 13, color: Colors.grey[600]))
|
||||
style: TextStyle(fontSize: 13, color: labelColor))
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -155,15 +155,22 @@ class _StaffEditorState extends State<StaffEditor> {
|
||||
],
|
||||
);
|
||||
|
||||
final updateButton = fcsButton(
|
||||
context,
|
||||
getLocalString(context, 'staff.update'),
|
||||
callack: _save,
|
||||
final updateButton = Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||
child: fcsButton(
|
||||
context,
|
||||
getLocalString(context, 'staff.update'),
|
||||
callack: _save,
|
||||
),
|
||||
);
|
||||
final addButton = fcsButton(
|
||||
context,
|
||||
getLocalString(context, 'staff.add'),
|
||||
callack: _add,
|
||||
|
||||
final addButton = Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||
child: fcsButton(
|
||||
context,
|
||||
getLocalString(context, 'staff.add'),
|
||||
callack: _add,
|
||||
),
|
||||
);
|
||||
|
||||
return LocalProgress(
|
||||
@@ -196,9 +203,7 @@ class _StaffEditorState extends State<StaffEditor> {
|
||||
Container(
|
||||
child: isNew ? addButton : updateButton,
|
||||
),
|
||||
SizedBox(
|
||||
height: 10,
|
||||
)
|
||||
SizedBox(height: 20)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user