mirror of
https://github.com/stonega/tsacdop
synced 2025-01-10 22:24:32 +01:00
Remove scroll grow.
This commit is contained in:
parent
579bcd7125
commit
44e32ec13b
@ -374,71 +374,76 @@ class _HomeState extends State<Home> with SingleTickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
body: TabBarView(
|
body: ScrollConfiguration(
|
||||||
controller: _controller,
|
behavior: NoGrowBehavior(),
|
||||||
children: <Widget>[
|
child: TabBarView(
|
||||||
NestedScrollViewInnerScrollPositionKeyWidget(
|
controller: _controller,
|
||||||
Key('tab0'),
|
children: <Widget>[
|
||||||
DescribedFeatureOverlay(
|
NestedScrollViewInnerScrollPositionKeyWidget(
|
||||||
featureId: podcastFeature,
|
Key('tab0'),
|
||||||
tapTarget: Text(s.featureDiscoveryEpisode,
|
DescribedFeatureOverlay(
|
||||||
textAlign: TextAlign.center),
|
featureId: podcastFeature,
|
||||||
backgroundColor: Colors.cyan[500],
|
tapTarget: Text(
|
||||||
enablePulsingAnimation: false,
|
s.featureDiscoveryEpisode,
|
||||||
onDismiss: () => Future.value(true),
|
textAlign: TextAlign.center),
|
||||||
title:
|
backgroundColor: Colors.cyan[500],
|
||||||
Text(s.featureDiscoveryEpisodeTitle),
|
enablePulsingAnimation: false,
|
||||||
description: Column(
|
onDismiss: () => Future.value(true),
|
||||||
crossAxisAlignment:
|
title: Text(
|
||||||
CrossAxisAlignment.start,
|
s.featureDiscoveryEpisodeTitle),
|
||||||
children: <Widget>[
|
description: Column(
|
||||||
Text(s.featureDiscoveryEpisodeDes),
|
crossAxisAlignment:
|
||||||
Row(
|
CrossAxisAlignment.start,
|
||||||
children: [
|
children: <Widget>[
|
||||||
FlatButton(
|
Text(s.featureDiscoveryEpisodeDes),
|
||||||
color: Colors.cyan[600],
|
Row(
|
||||||
padding:
|
children: [
|
||||||
const EdgeInsets.all(0),
|
FlatButton(
|
||||||
child: Text(s.understood,
|
color: Colors.cyan[600],
|
||||||
style: Theme.of(context)
|
padding:
|
||||||
.textTheme
|
const EdgeInsets.all(0),
|
||||||
.button
|
child: Text(s.understood,
|
||||||
.copyWith(
|
style: Theme.of(context)
|
||||||
color:
|
.textTheme
|
||||||
Colors.white)),
|
.button
|
||||||
onPressed: () async =>
|
.copyWith(
|
||||||
FeatureDiscovery
|
color: Colors
|
||||||
.completeCurrentStep(
|
.white)),
|
||||||
context),
|
onPressed: () async =>
|
||||||
),
|
FeatureDiscovery
|
||||||
Padding(
|
.completeCurrentStep(
|
||||||
padding: EdgeInsets.symmetric(
|
context),
|
||||||
horizontal: 5)),
|
),
|
||||||
FlatButton(
|
Padding(
|
||||||
color: Colors.cyan[600],
|
padding:
|
||||||
padding:
|
EdgeInsets.symmetric(
|
||||||
const EdgeInsets.all(0),
|
horizontal: 5)),
|
||||||
child: Text(s.dismiss,
|
FlatButton(
|
||||||
style: Theme.of(context)
|
color: Colors.cyan[600],
|
||||||
.textTheme
|
padding:
|
||||||
.button
|
const EdgeInsets.all(0),
|
||||||
.copyWith(
|
child: Text(s.dismiss,
|
||||||
color:
|
style: Theme.of(context)
|
||||||
Colors.white)),
|
.textTheme
|
||||||
onPressed: () =>
|
.button
|
||||||
FeatureDiscovery.dismissAll(
|
.copyWith(
|
||||||
context),
|
color: Colors
|
||||||
),
|
.white)),
|
||||||
],
|
onPressed: () =>
|
||||||
),
|
FeatureDiscovery
|
||||||
],
|
.dismissAll(context),
|
||||||
),
|
),
|
||||||
child: _RecentUpdate())),
|
],
|
||||||
NestedScrollViewInnerScrollPositionKeyWidget(
|
),
|
||||||
Key('tab1'), _MyFavorite()),
|
],
|
||||||
NestedScrollViewInnerScrollPositionKeyWidget(
|
),
|
||||||
Key('tab2'), _MyDownload()),
|
child: _RecentUpdate())),
|
||||||
],
|
NestedScrollViewInnerScrollPositionKeyWidget(
|
||||||
|
Key('tab1'), _MyFavorite()),
|
||||||
|
NestedScrollViewInnerScrollPositionKeyWidget(
|
||||||
|
Key('tab2'), _MyDownload()),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -474,7 +479,7 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
|
|||||||
BuildContext context, double shrinkOffset, bool overlapsContent) {
|
BuildContext context, double shrinkOffset, bool overlapsContent) {
|
||||||
final s = context.s;
|
final s = context.s;
|
||||||
return Container(
|
return Container(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color: context.scaffoldBackgroundColor,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
@ -378,23 +378,26 @@ class _ScrollPodcastsState extends State<ScrollPodcasts> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
),
|
),
|
||||||
child: TabBarView(
|
child: ScrollConfiguration(
|
||||||
children: groups[_groupIndex]
|
behavior: NoGrowBehavior(),
|
||||||
.podcasts
|
child: TabBarView(
|
||||||
.map<Widget>((podcastLocal) {
|
children: groups[_groupIndex]
|
||||||
return Container(
|
.podcasts
|
||||||
decoration: BoxDecoration(
|
.map<Widget>((podcastLocal) {
|
||||||
color: Theme.of(context).brightness ==
|
return Container(
|
||||||
Brightness.light
|
decoration: BoxDecoration(
|
||||||
? Theme.of(context).primaryColor
|
color: Theme.of(context).brightness ==
|
||||||
: Colors.black12),
|
Brightness.light
|
||||||
margin: EdgeInsets.symmetric(horizontal: 5.0),
|
? Theme.of(context).primaryColor
|
||||||
key: ObjectKey(podcastLocal.title),
|
: Colors.black12),
|
||||||
child: PodcastPreview(
|
margin: EdgeInsets.symmetric(horizontal: 5.0),
|
||||||
podcastLocal: podcastLocal,
|
key: ObjectKey(podcastLocal.title),
|
||||||
),
|
child: PodcastPreview(
|
||||||
);
|
podcastLocal: podcastLocal,
|
||||||
}).toList(),
|
),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user