fix: Fixed textfield and actions color and font weight

This commit is contained in:
Deven Joshi
2020-11-20 17:58:06 +05:30
parent 3c7b10173d
commit 98f3853a08
2 changed files with 36 additions and 7 deletions
+1 -1
View File
@@ -150,7 +150,6 @@ class ImageActionsModal extends StatelessWidget {
var titleStyle = TextStyle(
fontSize: 14.5,
color: Colors.black,
fontWeight: FontWeight.w500,
);
return ListTile(
@@ -165,6 +164,7 @@ class ImageActionsModal extends StatelessWidget {
size: 24.0,
),
onTap: onTap,
tileColor: Colors.white,
);
}
}
+35 -6
View File
@@ -434,22 +434,25 @@ class _ImageFooterState extends State<ImageFooter> {
autofocus: true,
decoration: InputDecoration(
isDense: true,
prefixIcon: Icon(
StreamIcons.search,
color: Colors.black,
prefixIconConstraints: BoxConstraints.tight(Size(38.0, 38.0)),
prefixIcon: Transform.scale(
scale: 1.2,
alignment: Alignment.center,
child: Icon(
StreamIcons.search,
color: Colors.black,
),
),
hintText: 'Search',
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(32.0),
borderSide:
BorderSide(color: Colors.black.withOpacity(0.08)),
gapPadding: 0.0,
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(32.0),
borderSide:
BorderSide(color: Colors.black.withOpacity(0.08)),
gapPadding: 0.0,
),
contentPadding: EdgeInsets.zero,
),
@@ -459,7 +462,7 @@ class _ImageFooterState extends State<ImageFooter> {
width: 8.0,
),
IconButton(
icon: Icon(StreamIcons.close_circle),
icon: Icon(StreamIcons.close_circle, color: Colors.black.withOpacity(0.5),),
onPressed: () {
modalSetState(() {
_userSearchMode = false;
@@ -679,3 +682,29 @@ class _ImageFooterState extends State<ImageFooter> {
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;
}
}