GenerateUIDialog: made the dialog lightmode friendly

This commit is contained in:
Manas Hejmadi
2025-08-16 17:08:40 +05:30
parent 7d16afa7c1
commit c249853fb7
2 changed files with 3 additions and 17 deletions

View File

@@ -233,10 +233,7 @@ const SAMPLE_STAC_RULESET = """
``` ```
{ {
"type": "gridView", "type": "gridView",
"physics": { "physics": "never",
"type": "scrollPhysics",
"name": "neverScrollable"
},
"shrinkWrap": true, "shrinkWrap": true,
"padding": { "padding": {
"left": 10, "left": 10,

View File

@@ -390,27 +390,16 @@ class _SDUIPreviewPageState extends ConsumerState<SDUIPreviewPage> {
Container( Container(
width: double.infinity, width: double.infinity,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black, // Dark background
borderRadius: BorderRadius.circular(15), borderRadius: BorderRadius.circular(15),
border: Border.all(
color: Colors.grey, // Border color
width: 1,
),
), ),
child: TextField( child: ADOutlinedTextField(
hintText: 'Any Modifications?',
onChanged: (z) { onChanged: (z) {
setState(() { setState(() {
modificationRequest = z; modificationRequest = z;
}); });
}, },
maxLines: 3, // Makes the text box taller maxLines: 3, // Makes the text box taller
style: TextStyle(color: Colors.white), // White text
decoration: InputDecoration(
hintText: 'Any Modifications?',
hintStyle: TextStyle(color: Colors.grey), // Grey hint text
border: InputBorder.none, // Removes the default border
contentPadding: EdgeInsets.all(16), // Padding inside the box
),
), ),
), ),
kVSpacer20, kVSpacer20,