Added widgets
This commit is contained in:
parent
4fdcc89c9d
commit
126cf6e905
4 changed files with 122 additions and 9 deletions
35
lib/widgets/box_widget.dart
Normal file
35
lib/widgets/box_widget.dart
Normal 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),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue