Updated widgets
This commit is contained in:
parent
cbb142b0cf
commit
171635c753
2 changed files with 13 additions and 8 deletions
|
|
@ -15,18 +15,23 @@ class BoxWidget extends StatelessWidget {
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
color: Color.fromRGBO(16, 22, 28, 0.584),
|
color: Color.fromRGBO(16, 22, 28, 0.584),
|
||||||
border: Border.all(color: const Color.fromRGBO(32, 47, 61, 1)),
|
border: Border.all(color: const Color.fromRGBO(41, 60, 78, 0.914)),
|
||||||
),
|
),
|
||||||
width: MediaQuery.of(context).size.width - 30,
|
width: MediaQuery.of(context).size.width - 30,
|
||||||
// height: MediaQuery.of(context).size.height / 2.2,
|
// height: MediaQuery.of(context).size.height / 2.2,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
if (title.isNotEmpty)
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
Column(
|
||||||
children: [TextWidget(text: title, bold: true, size: 24)],
|
children: [
|
||||||
),
|
Row(
|
||||||
const Gap(16),
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [TextWidget(text: title, bold: true, size: 24)],
|
||||||
|
),
|
||||||
|
const Gap(16),
|
||||||
|
],
|
||||||
|
),
|
||||||
Padding(padding: const EdgeInsets.all(16), child: content),
|
Padding(padding: const EdgeInsets.all(16), child: content),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ class MenuWidget extends StatelessWidget {
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(16),
|
padding: EdgeInsets.all(16),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color: Color.fromARGB(149, 16, 22, 28),
|
color: Color.fromARGB(149, 16, 22, 28),
|
||||||
border: Border.all(color: const Color.fromRGBO(32, 47, 61, 1)),
|
border: Border.all(color: const Color.fromRGBO(41, 60, 78, 0.914)),
|
||||||
),
|
),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue