radar page scroll bug fixed

This commit is contained in:
MohammadTaha Basiri 2021-12-14 13:06:16 +03:30
parent 3eaa5aab37
commit 1379c96453
1 changed files with 36 additions and 29 deletions

View File

@ -55,39 +55,46 @@ class _RadarState extends State<Radar> {
return Scaffold( return Scaffold(
body: Stack( body: Stack(
children: [ children: [
CustomScrollView( Theme(
controller: _scrollController, data: Theme.of(context).copyWith(
physics: const BouncingScrollPhysics(), colorScheme: Theme.of(context).colorScheme.copyWith(
slivers: [ secondary: Colors.white,
SliverPadding( ),
padding: const EdgeInsets.all( ),
20, child: CustomScrollView(
).copyWith(top: d.padding.top + 20), controller: _scrollController,
sliver: SliverToBoxAdapter( slivers: [
child: Container( SliverPadding(
alignment: Alignment.centerRight, padding: const EdgeInsets.all(
height: 76, 20,
child: const DidvanHorizontalLogo(), ).copyWith(top: d.padding.top + 20),
sliver: SliverToBoxAdapter(
child: Container(
alignment: Alignment.centerRight,
height: 76,
child: const DidvanHorizontalLogo(),
),
), ),
), ),
), const SliverPadding(
const SliverPadding( padding: EdgeInsets.symmetric(horizontal: 16),
padding: EdgeInsets.symmetric(horizontal: 16), sliver: SliverToBoxAdapter(
sliver: SliverToBoxAdapter( child: SearchField(),
child: SearchField(),
),
),
SliverPadding(
padding: const EdgeInsets.only(top: 300, right: 16, bottom: 20),
sliver: SliverToBoxAdapter(
child: DidvanText(
'آخرین رصد',
style: Theme.of(context).textTheme.subtitle1,
color: DesignConfig.darkPrimaryColor2,
), ),
), ),
), SliverPadding(
], padding:
const EdgeInsets.only(top: 300, right: 16, bottom: 20),
sliver: SliverToBoxAdapter(
child: DidvanText(
'آخرین رصد',
style: Theme.of(context).textTheme.subtitle1,
color: DesignConfig.darkPrimaryColor2,
),
),
),
],
),
), ),
CategoriesRow1(isColapsed: _isColapsed), CategoriesRow1(isColapsed: _isColapsed),
CategoriesRow2(isColapsed: _isColapsed), CategoriesRow2(isColapsed: _isColapsed),