This commit is contained in:
Patrick Alvin Alcala 2025-03-03 17:23:39 +08:00
parent ecccd4a9bf
commit 2d3f5bd96e
11 changed files with 184 additions and 143 deletions

View file

@ -48,6 +48,12 @@ class DropDownWidget extends StatelessWidget {
GoogleFonts.inter(fontSize: 16, fontWeight: FontWeight.w500)))),
],
onSelected: onChanged,
trailingIcon: Icon(
Icons.arrow_drop_down_sharp,
size: 24,
color: Colors.white,
),
selectedTrailingIcon: Icon(Icons.arrow_drop_up_sharp, size: 24, color: Colors.white),
width: MediaQuery.of(context).size.width * 0.9,
menuHeight: MediaQuery.of(context).size.height * 0.8,
textStyle: GoogleFonts.inter(

View file

@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import 'package:pharmacy_mobile/widgets/text_widget.dart';
class TextboxWidget extends StatelessWidget {
final String text;
const TextboxWidget({super.key, required this.text});
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
border: Border.all(color: const Color.fromRGBO(255, 255, 255, 1)),
borderRadius: BorderRadius.circular(4),
),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16), // Optional: Adds padding inside the container
child: TextWidget(
text: text,
size: 16,
),
);
}
}