Added widgets

This commit is contained in:
Patrick Alvin Alcala 2025-12-10 12:43:50 +08:00
parent 4fdcc89c9d
commit 126cf6e905
4 changed files with 122 additions and 9 deletions

View file

@ -0,0 +1,35 @@
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:ocbo_esign_validator/widgets/text_widget.dart';
class BoxWidget extends StatelessWidget {
final String title;
final Widget content;
const BoxWidget({super.key, required this.title, required this.content});
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: Color.fromARGB(149, 16, 22, 28),
border: Border.all(color: const Color.fromRGBO(32, 47, 61, 1)),
),
width: MediaQuery.of(context).size.width - 100,
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),
Padding(padding: const EdgeInsets.all(16), child: content),
],
),
);
}
}