Enough-Software / enough_platform_widgets

More cross platform widgets for Flutter. Extends flutter_platform_widgets.
MIT License
18 stars 20 forks source link

PlatformDropdownButton is not formatted correctly #17

Open jaredsburrows opened 1 year ago

jaredsburrows commented 1 year ago

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'),
                          ),
                        ],
                      ),