Skip to content

PlatformDropdownButton is not formatted correctly #17

@jaredsburrows

Description

@jaredsburrows

PlatformDropdownButton is not showing the correct theme and style on iOS:

Screenshot 2023-06-08 at 9 12 48 PM

Example:
dart

                    PlatformDropdownButton<String>(
                        value: _indent,
                        onChanged: (String? newValue) {
                          if (newValue != null) {
                            setState(() {
                              _indent = newValue;
                              _formatOrFlattenJson(_codeController.text);
                            });
                          }
                        },
                        items: const <DropdownMenuItem<String>>[
                          DropdownMenuItem<String>(
                            value: '  ',
                            child: Text('2 spaces'),
                          ),
                          DropdownMenuItem<String>(
                            value: '    ',
                            child: Text('4 spaces'),
                          ),
                        ],
                      ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions