mirror of
https://github.com/flutter/samples.git
synced 2025-11-14 03:19:06 +00:00
3.38 / 3.10 (#2742)
This PR makes samples pass CI when 3.10 is released. ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`).
This commit is contained in:
@@ -56,8 +56,7 @@ class PlatformAdaptingHomePage extends StatefulWidget {
|
||||
_PlatformAdaptingHomePageState();
|
||||
}
|
||||
|
||||
class _PlatformAdaptingHomePageState
|
||||
extends State<PlatformAdaptingHomePage> {
|
||||
class _PlatformAdaptingHomePageState extends State<PlatformAdaptingHomePage> {
|
||||
// This app keeps a global key for the songs tab because it owns a bunch of
|
||||
// data. Since changing platform re-parents those tabs into different
|
||||
// scaffolds, keeping a global key to it lets this app keep that tab's data as
|
||||
|
||||
@@ -55,9 +55,7 @@ class _NewsTabState extends State<NewsTab> {
|
||||
child: InkWell(
|
||||
// Make it splash on Android. It would happen automatically if this
|
||||
// was a real card but this is just a demo. Skip the splash on iOS.
|
||||
onTap: defaultTargetPlatform == TargetPlatform.iOS
|
||||
? null
|
||||
: () {},
|
||||
onTap: defaultTargetPlatform == TargetPlatform.iOS ? null : () {},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
child: Row(
|
||||
|
||||
@@ -39,8 +39,7 @@ String generateRandomHeadline() {
|
||||
2 => '$artist releases ${capitalizePair(wordPairIterator.first)}',
|
||||
3 => '$artist talks about his ${nouns[_random.nextInt(nouns.length)]}',
|
||||
4 => '$artist talks about her ${nouns[_random.nextInt(nouns.length)]}',
|
||||
5 =>
|
||||
'$artist talks about their ${nouns[_random.nextInt(nouns.length)]}',
|
||||
5 => '$artist talks about their ${nouns[_random.nextInt(nouns.length)]}',
|
||||
6 =>
|
||||
'$artist says their music is inspired by ${wordPairIterator.first.join(' ')}',
|
||||
7 =>
|
||||
|
||||
Reference in New Issue
Block a user