Skip to content

Commit

Permalink
Merge pull request #324 from akvelon/tour-header-sdk-selector
Browse files Browse the repository at this point in the history
SDK selector in tour scaffold
  • Loading branch information
nausharipov authored Nov 21, 2022
2 parents 4aedd5a + 5ad067f commit 10b287b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import 'builders/sdks.dart';

class SdkDropdown extends StatelessWidget {
final String sdkId;
final ValueChanged<String?> onChanged;
final ValueChanged<String> onChanged;
const SdkDropdown({
required this.sdkId,
required this.onChanged,
Expand All @@ -40,7 +40,11 @@ class SdkDropdown extends StatelessWidget {
return _DropdownWrapper(
child: DropdownButton(
value: sdkId,
onChanged: onChanged,
onChanged: (value) {
if (value != null) {
onChanged(value);
}
},
items: sdks
.map(
(sdk) => DropdownMenuItem(
Expand Down

0 comments on commit 10b287b

Please sign in to comment.