mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 18:57:05 +08:00
GenerateUIDialog: made the dialog lightmode friendly
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user