diff --git a/lib/src/image_actions_modal.dart b/lib/src/image_actions_modal.dart index f46cb008..0328209e 100644 --- a/lib/src/image_actions_modal.dart +++ b/lib/src/image_actions_modal.dart @@ -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, ); } } diff --git a/lib/src/image_footer.dart b/lib/src/image_footer.dart index b1cf65d3..5f4710d1 100644 --- a/lib/src/image_footer.dart +++ b/lib/src/image_footer.dart @@ -434,22 +434,25 @@ class _ImageFooterState extends State { 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 { 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 { Navigator.pop(context); } } + +/// Used for clipping textfield prefix icon +class IconClipper extends CustomClipper { + @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; + } +}