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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Center( return Center(
child: ElevatedButton( child: Container(
onPressed: () { decoration: BoxDecoration(
final bookableBloc = context.read<BookableSpacesBloc>(); borderRadius: BorderRadius.circular(20),
boxShadow: [
showDialog( BoxShadow(
context: context, offset: Offset.zero,
builder: (context) => MultiBlocProvider( blurRadius: 3,
providers: [ spreadRadius: 0,
BlocProvider.value( color: ColorsManager.timePickerColor.withValues(
value: bookableBloc, alpha: 0.3,
),
BlocProvider(
create: (context) => UpdateBookableSpacesBloc(
RemoteUpdateBookableSpaceService(HTTPService()),
),
),
],
child: SetupBookableSpacesDialog(
editingBookableSpace: space,
), ),
), )
); ],
},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: const Size(40, 30),
elevation: 1,
), ),
child: SvgPicture.asset( child: ElevatedButton(
Assets.settings, onPressed: () {
height: 13, final bookableBloc = context.read<BookableSpacesBloc>();
color: ColorsManager.blue1,
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: [ children: [
Row( Row(
children: [ children: [
ElevatedButton( Container(
style: ElevatedButton.styleFrom( decoration: BoxDecoration(
padding: EdgeInsets.zero, borderRadius: BorderRadius.circular(12),
minimumSize: const Size(50, 40), boxShadow: [
shape: RoundedRectangleBorder( BoxShadow(
borderRadius: BorderRadius.circular(12), 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(
child: SvgPicture.asset( Assets.backButtonIcon,
Assets.backButtonIcon, height: 15,
height: 15, ),
), onPressed: () {
onPressed: () { pageController.jumpToPage(1);
pageController.jumpToPage(1); }),
}), ),
const SizedBox( const SizedBox(
width: 10, width: 10,
), ),