radar page scroll bug fixed
This commit is contained in:
parent
3eaa5aab37
commit
1379c96453
|
|
@ -55,39 +55,46 @@ class _RadarState extends State<Radar> {
|
|||
return Scaffold(
|
||||
body: Stack(
|
||||
children: [
|
||||
CustomScrollView(
|
||||
controller: _scrollController,
|
||||
physics: const BouncingScrollPhysics(),
|
||||
slivers: [
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(
|
||||
20,
|
||||
).copyWith(top: d.padding.top + 20),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Container(
|
||||
alignment: Alignment.centerRight,
|
||||
height: 76,
|
||||
child: const DidvanHorizontalLogo(),
|
||||
Theme(
|
||||
data: Theme.of(context).copyWith(
|
||||
colorScheme: Theme.of(context).colorScheme.copyWith(
|
||||
secondary: Colors.white,
|
||||
),
|
||||
),
|
||||
child: CustomScrollView(
|
||||
controller: _scrollController,
|
||||
slivers: [
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(
|
||||
20,
|
||||
).copyWith(top: d.padding.top + 20),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Container(
|
||||
alignment: Alignment.centerRight,
|
||||
height: 76,
|
||||
child: const DidvanHorizontalLogo(),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SliverPadding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
sliver: SliverToBoxAdapter(
|
||||
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,
|
||||
const SliverPadding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
sliver: SliverToBoxAdapter(
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
CategoriesRow1(isColapsed: _isColapsed),
|
||||
CategoriesRow2(isColapsed: _isColapsed),
|
||||
|
|
|
|||
Loading…
Reference in New Issue