Responsive widget
This commit is contained in:
parent
5584af0fb7
commit
1c825237f4
1 changed files with 4 additions and 2 deletions
|
|
@ -10,14 +10,16 @@ class LoginBoxWidget extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final responsiveWidth = (MediaQuery.of(context).size.width - 30).clamp(100.0, 400.0);
|
||||
|
||||
return Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
color: Color.fromRGBO(16, 22, 28, 0.584),
|
||||
color: const Color.fromRGBO(16, 22, 28, 0.584),
|
||||
border: Border.all(color: const Color.fromRGBO(41, 60, 78, 0.914)),
|
||||
),
|
||||
width: MediaQuery.of(context).size.width - 30,
|
||||
width: responsiveWidth,
|
||||
// height: MediaQuery.of(context).size.height / 2.2,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue