fix: remove sizer

This commit is contained in:
mso7nueh
2024-09-11 13:56:33 +03:00
parent 220e13d525
commit 3aa9e8cba8
38 changed files with 359 additions and 413 deletions

View File

@@ -50,14 +50,14 @@ class BlogPostEditScreen extends StatelessWidget {
decoration: AppDecoration.fillGray,
child: ListView(
children: [
SizedBox(height: 30.v),
SizedBox(height: 30),
Container(
margin: EdgeInsets.only(
left: 16.h,
right: 20.h,
bottom: 10.h,
left: 16,
right: 20,
bottom: 10,
),
padding: EdgeInsets.all(12.h),
padding: EdgeInsets.all(12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: const BorderRadius.all(Radius.circular(12)),

View File

@@ -17,11 +17,11 @@ class CommentWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(
left: 16.h,
right: 20.h,
bottom: 10.h,
left: 16,
right: 20,
bottom: 10,
),
padding: EdgeInsets.all(12.h),
padding: EdgeInsets.all(12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: const BorderRadius.all(Radius.circular(12)),
@@ -54,15 +54,15 @@ class CommentWidget extends StatelessWidget {
Expanded(
child: Padding(
padding: EdgeInsets.only(
left: 12.h,
top: 2.v,
bottom: 11.v,
left: 12,
top: 2,
bottom: 11,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 227.h,
width: 227,
child: Row(
children: [
Text(
@@ -71,7 +71,7 @@ class CommentWidget extends StatelessWidget {
),
Spacer(),
Padding(
padding: EdgeInsets.only(left: 6.h),
padding: EdgeInsets.only(left: 6),
child: Text(
commentModelObj.dateText!,
style: theme.textTheme.bodyMedium,
@@ -80,7 +80,7 @@ class CommentWidget extends StatelessWidget {
],
),
),
SizedBox(height: 6.v),
SizedBox(height: 6),
Text(
commentModelObj.greetingText!,
style: CustomTextStyles.bodyMediumBluegray800,
@@ -91,8 +91,8 @@ class CommentWidget extends StatelessWidget {
),
CustomImageView(
imagePath: ImageConstant.imgSend,
height: 30.v,
width: 30.h,
height: 30,
width: 30,
margin: EdgeInsets.only(left: 5),
),
],

View File

@@ -118,34 +118,34 @@ class CustomSearchView extends StatelessWidget {
),
prefixIconConstraints: prefixConstraints ??
BoxConstraints(
maxHeight: 40.v,
maxHeight: 40,
),
suffixIconConstraints: suffixConstraints ??
BoxConstraints(
maxHeight: 40.v,
maxHeight: 40,
),
isDense: true,
contentPadding: contentPadding ??
EdgeInsets.only(
top: 11.v,
right: 11.h,
bottom: 11.v,
top: 11,
right: 11,
bottom: 11,
),
fillColor: fillColor ?? Colors.grey[200],
filled: filled,
border: borderDecoration ??
OutlineInputBorder(
borderRadius: BorderRadius.circular(8.h),
borderRadius: BorderRadius.circular(8),
borderSide: BorderSide.none,
),
enabledBorder: borderDecoration ??
OutlineInputBorder(
borderRadius: BorderRadius.circular(8.h),
borderRadius: BorderRadius.circular(8),
borderSide: BorderSide.none,
),
focusedBorder: borderDecoration ??
OutlineInputBorder(
borderRadius: BorderRadius.circular(8.h),
borderRadius: BorderRadius.circular(8),
borderSide: BorderSide.none,
),
);