change some padding and when bake to AccessManagementPage get table

This commit is contained in:
mohammad
2024-08-24 10:35:42 +03:00
parent 9d21b32607
commit 6d64408360
4 changed files with 83 additions and 64 deletions

View File

@ -12,17 +12,17 @@ class DateTimeWebWidget extends StatelessWidget {
required this.title,
required this.startTime,
required this.endTime,
required this.isTime,
required this.firstString,
required this.secondString,
required this.icon,
});
final Size size;
final String title;
final bool isRequired;
final bool isTime;
final String firstString;
final String secondString;
final String icon;
final Function()? startTime;
final Function()? endTime;
@ -49,34 +49,45 @@ class DateTimeWebWidget extends StatelessWidget {
),
const SizedBox(height: 8,),
Container(
width: size.width * 0.25,
padding: EdgeInsets.all(10),
decoration: containerDecoration,
child: Column(
children: [
Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
InkWell(
onTap: startTime,
child: Text(firstString, style: Theme.of(context).textTheme.bodySmall!.copyWith(
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),)
),
const Icon(Icons.arrow_right_alt),
InkWell(
onTap:endTime,
child: Text(secondString, style: Theme.of(context).textTheme.bodySmall!.copyWith(
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),)),
SvgPicture.asset(
isTime?
Assets.timeIcon:
Assets.calendarIcon,
),
],
),
],
)),
height:size.height * 0.055 ,
padding: EdgeInsets.only(top: 10,bottom: 10,right: 30,left: 30),
decoration: containerDecoration,
child: FittedBox(
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
InkWell(
onTap: startTime,
child: FittedBox(
child: Text(firstString,
style: Theme.of(context).textTheme.bodySmall!.copyWith(
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),),
)
),
SizedBox(width: 10,),
const Icon(Icons.arrow_right_alt),
SizedBox(width: 10,),
InkWell(
onTap:endTime,
child: FittedBox(
child: Text(secondString,
style: Theme.of(context).textTheme.bodySmall!.copyWith(
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),
),
)),
SizedBox(width: 10,),
SvgPicture.asset(
icon,
),
],
),
],
)),
),
],
);
}