skip to Main Content

Flutter controll scrolling priority

I have a code that has these main widgets: CustomScrollView( physics: const AlwaysScrollableScrollPhysics( parent: BouncingScrollPhysics(), ), slivers: [ SliverFillRemaining( hasScrollBody: true, child: ListView( children: [], ), ), ], ), I have it this way because around the ListView widget I…

VIEW QUESTION

Flutter – How to hide part of SliverAppBar when it is behind a widget?

import 'package:flutter/material.dart'; class HomePage extends StatefulWidget { const HomePage({super.key}); @override State<HomePage> createState() => _HomePageState(); } class _HomePageState extends State<HomePage> { var opacity = 0.0; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.purple.shade100, body: SafeArea( child: Stack( children: [ NotificationListener<ScrollUpdateNotification>(…

VIEW QUESTION

Flutter use SliverAppBar with Hero widget

I'm having trouble using the Hero widget with SliverAppBar. class MyHomePage extends StatelessWidget { const MyHomePage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Flutter Demo Home Page'), ), body: Center( child: Row( children: [Colors.red, Colors.blue, Colors.yellow]…

VIEW QUESTION
Back To Top
Search