update
This commit is contained in:
parent
ecccd4a9bf
commit
2d3f5bd96e
11 changed files with 184 additions and 143 deletions
|
|
@ -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(
|
||||
|
|
|
|||
24
lib/widgets/textbox_widget.dart
Normal file
24
lib/widgets/textbox_widget.dart
Normal 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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue