Merge pull request #301 from GetStream/fix/buttonsize
fix(ui): fix button size
This commit is contained in:
@@ -21,28 +21,28 @@ class StreamBackButton extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Stack(
|
return Stack(
|
||||||
|
alignment: Alignment.center,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
RawMaterialButton(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(4),
|
||||||
|
),
|
||||||
|
elevation: 0,
|
||||||
|
highlightElevation: 0,
|
||||||
|
focusElevation: 0,
|
||||||
|
disabledElevation: 0,
|
||||||
|
hoverElevation: 0,
|
||||||
|
onPressed: () {
|
||||||
|
if (onPressed != null) {
|
||||||
|
onPressed();
|
||||||
|
} else {
|
||||||
|
Navigator.maybePop(context);
|
||||||
|
}
|
||||||
|
},
|
||||||
padding: const EdgeInsets.all(14.0),
|
padding: const EdgeInsets.all(14.0),
|
||||||
child: RawMaterialButton(
|
child: StreamSvgIcon.left(
|
||||||
shape:
|
size: 24,
|
||||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
|
color: StreamChatTheme.of(context).colorTheme.black,
|
||||||
elevation: 0,
|
|
||||||
highlightElevation: 0,
|
|
||||||
focusElevation: 0,
|
|
||||||
disabledElevation: 0,
|
|
||||||
hoverElevation: 0,
|
|
||||||
onPressed: () {
|
|
||||||
if (onPressed != null) {
|
|
||||||
onPressed();
|
|
||||||
} else {
|
|
||||||
Navigator.maybePop(context);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: StreamSvgIcon.left(
|
|
||||||
size: 24,
|
|
||||||
color: StreamChatTheme.of(context).colorTheme.black,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (showUnreads)
|
if (showUnreads)
|
||||||
|
|||||||
Reference in New Issue
Block a user