feat : container constraints
This commit is contained in:
@@ -49,8 +49,11 @@ class RBottomNavigationItem extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
width: 70.w,
|
constraints: BoxConstraints(
|
||||||
height: 70.h,
|
minWidth: 70.h,
|
||||||
|
minHeight: 70.h,
|
||||||
|
maxHeight: 70.h
|
||||||
|
),
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: isSelected ? Colors.white.withAlpha(208) : Colors.transparent,
|
color: isSelected ? Colors.white.withAlpha(208) : Colors.transparent,
|
||||||
|
|||||||
Reference in New Issue
Block a user