fix: Fixed textfield and actions color and font weight
This commit is contained in:
@@ -150,7 +150,6 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
var titleStyle = TextStyle(
|
var titleStyle = TextStyle(
|
||||||
fontSize: 14.5,
|
fontSize: 14.5,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
@@ -165,6 +164,7 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
|
tileColor: Colors.white,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,22 +434,25 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
autofocus: true,
|
autofocus: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
prefixIcon: Icon(
|
prefixIconConstraints: BoxConstraints.tight(Size(38.0, 38.0)),
|
||||||
StreamIcons.search,
|
prefixIcon: Transform.scale(
|
||||||
color: Colors.black,
|
scale: 1.2,
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Icon(
|
||||||
|
StreamIcons.search,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
hintText: 'Search',
|
hintText: 'Search',
|
||||||
border: OutlineInputBorder(
|
border: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(32.0),
|
borderRadius: BorderRadius.circular(32.0),
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(color: Colors.black.withOpacity(0.08)),
|
BorderSide(color: Colors.black.withOpacity(0.08)),
|
||||||
gapPadding: 0.0,
|
|
||||||
),
|
),
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(32.0),
|
borderRadius: BorderRadius.circular(32.0),
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(color: Colors.black.withOpacity(0.08)),
|
BorderSide(color: Colors.black.withOpacity(0.08)),
|
||||||
gapPadding: 0.0,
|
|
||||||
),
|
),
|
||||||
contentPadding: EdgeInsets.zero,
|
contentPadding: EdgeInsets.zero,
|
||||||
),
|
),
|
||||||
@@ -459,7 +462,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
width: 8.0,
|
width: 8.0,
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(StreamIcons.close_circle),
|
icon: Icon(StreamIcons.close_circle, color: Colors.black.withOpacity(0.5),),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
modalSetState(() {
|
modalSetState(() {
|
||||||
_userSearchMode = false;
|
_userSearchMode = false;
|
||||||
@@ -679,3 +682,29 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Used for clipping textfield prefix icon
|
||||||
|
class IconClipper extends CustomClipper<Path> {
|
||||||
|
@override
|
||||||
|
Path getClip(Size size) {
|
||||||
|
var leftX = size.width / 5;
|
||||||
|
var rightX = 4 * size.width / 5;
|
||||||
|
var topY = size.height / 5;
|
||||||
|
var bottomY = 4 * size.height / 5;
|
||||||
|
|
||||||
|
final path = Path();
|
||||||
|
path.moveTo(leftX, topY);
|
||||||
|
path.lineTo(leftX, bottomY);
|
||||||
|
path.lineTo(rightX, bottomY);
|
||||||
|
path.lineTo(rightX, topY);
|
||||||
|
path.lineTo(leftX, topY);
|
||||||
|
path.lineTo(0.0, 0.0);
|
||||||
|
path.close();
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool shouldReclip(CustomClipper oldClipper) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user