Skip to content

Commit

Permalink
feat(example): fix double scrollbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
payam-zahedi committed Sep 21, 2024
1 parent ac348bf commit c2b22fd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions example/lib/src/features/home/views/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@ class _HomeScreenState extends State<HomeScreen> {
Widget build(BuildContext context) {
return ToastificationConfigProvider(
config: ToastificationConfig(
marginBuilder: (context, alignment) =>
const EdgeInsets.fromLTRB(0, 16, 0, 110),
),
child: const Scrollbar(
marginBuilder: (context, alignment) =>
const EdgeInsets.fromLTRB(0, 16, 0, 110),
),
child: Scrollbar(
child: Scaffold(
extendBody: true,
bottomNavigationBar: BottomNavigationView(),
body: CustomScrollView(
scrollBehavior: const ScrollBehavior().copyWith(
scrollbars: false,
),
primary: true,
slivers: [
slivers: const [
ToastAppBar(),
SliverToBoxAdapter(child: ToastHeader()),
CustomizationSection(),
Expand Down

0 comments on commit c2b22fd

Please sign in to comment.