- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.5k
 
[various] Migrate example Radio groups to new RadioGroup API #10155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            auto-submit
  merged 34 commits into
  flutter:main
from
alexskobozev:handle_deprecated_radio_examples
  
      
      
   
  Oct 22, 2025 
      
    
      
        
          +132
        
        
          −124
        
        
          
        
      
    
  
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            34 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      32a6914
              
                [animations] Refactor `Radio` widgets in example
              
              
                alexskobozev 64064df
              
                [camera] Refactor `Radio` widgets in example
              
              
                alexskobozev 157a932
              
                [camera] Refactor `Radio` widgets in example
              
              
                alexskobozev 8109fb3
              
                [camera_android_camerax] Refactor `Radio` widgets in example
              
              
                alexskobozev bc09c33
              
                [camera_avfoundation] Refactor `Radio` widgets in example
              
              
                alexskobozev dfc6124
              
                [google_sign_in_web] Refactor `Radio` widgets in example
              
              
                alexskobozev 57f7be9
              
                [two_dimensional_scrollables] Refactor `Radio` widgets in example
              
              
                alexskobozev 7b2db36
              
                Fix lints in animations example
              
              
                alexskobozev fe84be7
              
                [two_dimensional_scrollables] Fix lints in examples
              
              
                alexskobozev b813cf9
              
                [camera_avfoundation] Format example `main.dart`
              
              
                alexskobozev 5bcf490
              
                Adds miscellaneous formatting fixes
              
              
                alexskobozev c6cdb22
              
                Merge remote-tracking branch 'upstream/main' into handle_deprecated_r…
              
              
                alexskobozev f6b2de3
              
                Update changelogs
              
              
                alexskobozev 09df509
              
                Revert "Update changelogs"
              
              
                alexskobozev 7b2347e
              
                Merge remote-tracking branch 'upstream/main' into handle_deprecated_r…
              
              
                alexskobozev 6c5c615
              
                [google_sign_in_web] Disable RadioListTile when onChanged is null
              
              
                alexskobozev 3234a2b
              
                [camera_avfoundation] Disable camera selection during recording
              
              
                alexskobozev aaba578
              
                Update changelogs
              
              
                alexskobozev 5e347e4
              
                [google_sign_in_web] Simplify `onChanged` callback in example
              
              
                alexskobozev 3ded134
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev 2a923fe
              
                [google_sign_in_web] Update onChanged callback in example: pass it as…
              
              
                alexskobozev 71f6c80
              
                Merge remote-tracking branch 'origin/handle_deprecated_radio_examples…
              
              
                alexskobozev 0839417
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev eceac1f
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev 39e0367
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev ddc19d5
              
                Update versions
              
              
                alexskobozev 764aef8
              
                fix version match
              
              
                alexskobozev abda454
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev 587bbde
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev 5e92e4b
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev a0f6243
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev ed108d7
              
                update version
              
              
                alexskobozev 7c0ca21
              
                Merge branch 'main' into handle_deprecated_radio_examples
              
              
                alexskobozev 8eba7ed
              
                Update versions
              
              
                alexskobozev File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
          Some comments aren't visible on the classic Files Changed page.
        
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| ## NEXT | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same applies here; the changes aren't to lib/main.dart.  | 
||
| 
     | 
||
| * Updates examples to use the new RadioGroup API instead of deprecated Radio parameters. | ||
| * Updates minimum supported SDK version to Flutter 3.29/Dart 3.7. | ||
| 
     | 
||
| ## 0.3.7 | ||
| 
          
            
          
           | 
    ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexskobozev @stuartmorgan-g this note in the changelog and updated readme seems to be out of sync with the
sdk: ^3.7.0constraint in thecamera/pubspec.yaml.This camera
0.11.2+1plugin release shows up asUpgradablein a Flutter project that hassdk: 3.8.1constraint (i.e. requires to support Android 21).If the
cameraplugin dropped support for Android 21 - it should not be upgradable and maybe plugin's sdk constraint need to be bumped to Dart 3.9?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are going to comment on PRs instead of filing issues when you believe there's an issue, please use the relevant PR (which is #9851 here, not this one).
Your concern is addressed in the description of that PR:
Yes, that is correct. 0.11.2+1 will work correctly in a project that supports Android 21.
"Support" here refers to the camera plugin holistically, not the
camerapackage specifically, and is not the same thing as "runs on". If someone files an issue today about an issue that happens when usingcamera*only on Android 21-23, we would close that issue saying that we no longer support Android <24, and thus, Android <24 is not supported.We deliberately do not go into a lot of details about the specific runtime support matrix of each sub-package, because that's way to much information for the README, and the resolver will ensure that the right thing happens regardless. If someone really wants that level of detail, they can read the individual pubspecs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartmorgan-g I commented on this PR because it triggered the plugin release.
I realize that older platform plugins are pulled instead. Though for consistency with federated platform plugins the
cameraplugin might be better use the same sdk constraint because this note in the changelog is misleading about Android 21 support. The camera example project also has sdk 3.9 constraint.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I'm asking you to please not do that. The only reason I—the person who this comment was relevant to—saw this question is because I happened to have reviewed this PR. Meanwhile it's spamming a random contributor who has nothing to do with the thing you are asking about.
In general, it is a much better idea to report issues or potential issues via the issue tracker. There is a system for routing them to the right people, instead of just hoping that the right person sees the comment.
Anyone maintaining a federated plugin is welcome to manage their constraints however they choose to. For our plugins, we follow our documented policy of not adding artificial restrictions.