Skip to content
Learning From Experience

Learning From Experience

All experiences are gathered together here to learn from them.

  • Home
  • flutter

Tag: flutter

Add padding to scrollbar

Posted on October 9, 2024October 9, 2024 By Muzahidul Islam No Comments on Add padding to scrollbar
Add padding to scrollbar
Flutter

Normal Scrollbar doesn’t support scrollbar padding, we can add that using RawScrollbar widget.
Here is an example:

Here, mainAxisMargin adds a margin on both sides to the main axis of the scrollbar, which is not supported by the normal Scrollbar widget but in RawScrollbar widget.

Bottom Navigation Center Icon Background problem fix

Posted on September 28, 2024September 28, 2024 By Muzahidul Islam No Comments on Bottom Navigation Center Icon Background problem fix
Bottom Navigation Center Icon Background problem fix
Flutter

Here is how it shows when we add a centered bottom navigation bar icon normally.

But we can fix the problem just by adding a line of code in the Scaffold() and that is
extendBody: true,
That will remove the background color problem from the floating action button.

Flutter Icon center showing problem fix

Posted on September 18, 2024September 18, 2024 By Muzahidul Islam No Comments on Flutter Icon center showing problem fix
Flutter Icon center showing problem fix
Flutter

When we try to add an icon in a container, it often shows in a buggy case. We can solve the problem just by adding a line in the container.That is alignment: Alignment.center;

Recent Posts

  • Stack clipping an object problem solved
  • Change app bundleId, appName system in flutter with terminal
  • Add padding to scrollbar
  • Bottom Navigation Center Icon Background problem fix
  • Flutter Icon center showing problem fix

Recent Comments

No comments to show.

Archives

  • December 2024
  • October 2024
  • September 2024

Categories

  • App Bundle
  • Flutter

Copyright © 2025 Learning From Experience.

Theme: Oceanly News Dark by ScriptsTown