fix settings and back button to meet the UI

This commit is contained in:
Rafeek-Khoudare
2025-07-22 10:58:30 +03:00
parent 2b110b7c91
commit b6d4084ca7
2 changed files with 75 additions and 44 deletions

View File

@ -20,38 +20,53 @@ class EditBookableSpaceButtonWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: ElevatedButton(
onPressed: () {
final bookableBloc = context.read<BookableSpacesBloc>();
showDialog(
context: context,
builder: (context) => MultiBlocProvider(
providers: [
BlocProvider.value(
value: bookableBloc,
),
BlocProvider(
create: (context) => UpdateBookableSpacesBloc(
RemoteUpdateBookableSpaceService(HTTPService()),
),
),
],
child: SetupBookableSpacesDialog(
editingBookableSpace: space,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
offset: Offset.zero,
blurRadius: 3,
spreadRadius: 0,
color: ColorsManager.timePickerColor.withValues(
alpha: 0.3,
),
),
);
},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: const Size(40, 30),
elevation: 1,
)
],
),
child: SvgPicture.asset(
Assets.settings,
height: 13,
color: ColorsManager.blue1,
child: ElevatedButton(
onPressed: () {
final bookableBloc = context.read<BookableSpacesBloc>();
showDialog(
context: context,
builder: (context) => MultiBlocProvider(
providers: [
BlocProvider.value(
value: bookableBloc,
),
BlocProvider(
create: (context) => UpdateBookableSpacesBloc(
RemoteUpdateBookableSpaceService(HTTPService()),
),
),
],
child: SetupBookableSpacesDialog(
editingBookableSpace: space,
),
),
);
},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: const Size(45, 30),
elevation: 0,
),
child: SvgPicture.asset(
Assets.settings,
height: 13,
color: ColorsManager.blue1,
),
),
),
);

View File

@ -24,21 +24,37 @@ class RowOfButtonsTitleWidget extends StatelessWidget {
children: [
Row(
children: [
ElevatedButton(
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: const Size(50, 40),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
boxShadow: [
BoxShadow(
offset: Offset.zero,
blurRadius: 3,
spreadRadius: 0,
color: ColorsManager.timePickerColor.withValues(
alpha: 0.3,
),
)
],
),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: const Size(50, 40),
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
),
),
child: SvgPicture.asset(
Assets.backButtonIcon,
height: 15,
),
onPressed: () {
pageController.jumpToPage(1);
}),
child: SvgPicture.asset(
Assets.backButtonIcon,
height: 15,
),
onPressed: () {
pageController.jumpToPage(1);
}),
),
const SizedBox(
width: 10,
),