buildManageRole method
Implementation
Widget buildManageRole(BuildContext context) {
return SizedBox(
height: 60.0,
child: Row(
children: [
AppText('Role', style: TextStyles.normal(context)),
const Spacer(),
InkWell(
onTap: () {
controller.openRoleManagerDialog();
},
child: Container(
height: 40.0,
padding: const EdgeInsets.symmetric(horizontal: 20.0),
decoration: BoxDecoration(
color: Theme
.of(context)
.primaryColor,
borderRadius: RadiusUtils.borderRadiusForButtons,
border: Border.all(
color: Colors.grey,
width: 0.5,
),
),
child: Obx(() {
return AppText(
controller.currentUserRole.value,
style: TextStyles.normalBold(context));
}),
),
),
],
),
);
}