diff --git a/lib/widgets/box_widget.dart b/lib/widgets/box_widget.dart index d992392..498b5a6 100644 --- a/lib/widgets/box_widget.dart +++ b/lib/widgets/box_widget.dart @@ -15,18 +15,23 @@ class BoxWidget extends StatelessWidget { decoration: BoxDecoration( borderRadius: BorderRadius.circular(8), 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, // height: MediaQuery.of(context).size.height / 2.2, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [TextWidget(text: title, bold: true, size: 24)], - ), - const Gap(16), + if (title.isNotEmpty) + Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [TextWidget(text: title, bold: true, size: 24)], + ), + const Gap(16), + ], + ), Padding(padding: const EdgeInsets.all(16), child: content), ], ), diff --git a/lib/widgets/menu_widget.dart b/lib/widgets/menu_widget.dart index b342438..275661a 100644 --- a/lib/widgets/menu_widget.dart +++ b/lib/widgets/menu_widget.dart @@ -16,9 +16,9 @@ class MenuWidget extends StatelessWidget { child: Container( padding: EdgeInsets.all(16), decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), + borderRadius: BorderRadius.circular(24), 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, height: 120,