@@ -179,7 +179,7 @@ class _DraggableHomeState extends State<DraggableHome> {
179179 double topPadding,
180180 ) {
181181 return CustomScrollView (
182- physics: BouncingScrollPhysics (),
182+ physics: const BouncingScrollPhysics (),
183183 slivers: [
184184 StreamBuilder <List <bool >>(
185185 stream: CombineLatestStream .list <bool >(
@@ -193,7 +193,7 @@ class _DraggableHomeState extends State<DraggableHome> {
193193 leading: widget.alwaysShowLeadingAndAction
194194 ? widget.leading
195195 : ! fullyCollapsed
196- ? SizedBox ()
196+ ? const SizedBox ()
197197 : widget.leading,
198198 actions: widget.alwaysShowLeadingAndAction
199199 ? widget.actions
@@ -208,7 +208,7 @@ class _DraggableHomeState extends State<DraggableHome> {
208208 ? widget.title
209209 : AnimatedOpacity (
210210 opacity: fullyCollapsed ? 1 : 0 ,
211- duration: Duration (milliseconds: 100 ),
211+ duration: const Duration (milliseconds: 100 ),
212212 child: widget.title,
213213 ),
214214 collapsedHeight: appBarHeight,
@@ -234,19 +234,19 @@ class _DraggableHomeState extends State<DraggableHome> {
234234 Positioned (
235235 bottom: 0 + widget.curvedBodyRadius,
236236 child: AnimatedContainer (
237- padding: EdgeInsets .only (left: 10 , right: 10 ),
237+ padding: const EdgeInsets .only (left: 10 , right: 10 ),
238238 curve: Curves .easeInOutCirc,
239- duration: Duration (milliseconds: 100 ),
239+ duration: const Duration (milliseconds: 100 ),
240240 height: fullyCollapsed
241241 ? 0
242242 : fullyExpanded
243243 ? 0
244244 : kToolbarHeight,
245245 width: MediaQuery .of (context).size.width,
246246 child: fullyCollapsed
247- ? SizedBox ()
247+ ? const SizedBox ()
248248 : fullyExpanded
249- ? SizedBox ()
249+ ? const SizedBox ()
250250 : widget.headerBottomBar ?? Container (),
251251 ),
252252 )
@@ -313,7 +313,7 @@ class _DraggableHomeState extends State<DraggableHome> {
313313 stream: isFullyExpanded.stream,
314314 builder: (context, snapshot) {
315315 return AnimatedContainer (
316- duration: Duration (milliseconds: 500 ),
316+ duration: const Duration (milliseconds: 500 ),
317317 height: (snapshot.data ?? false ) ? 25 : 0 ,
318318 width: MediaQuery .of (context).size.width,
319319 child: Center (
0 commit comments