removed ripple effect from bottom nav

This commit is contained in:
dstark5
2023-09-13 22:43:14 -07:00
parent 7f3e255259
commit 013cce078f
2 changed files with 7 additions and 3 deletions

View File

@ -114,7 +114,6 @@ class _HomePageState extends ConsumerState<HomePage> {
body: _widgetOptions.elementAt(selectedIndex), body: _widgetOptions.elementAt(selectedIndex),
bottomNavigationBar: SafeArea( bottomNavigationBar: SafeArea(
child: GNav( child: GNav(
rippleColor: Colors.redAccent,
backgroundColor: isDarkMode ? Colors.black : Colors.grey.shade200, backgroundColor: isDarkMode ? Colors.black : Colors.grey.shade200,
haptic: true, haptic: true,
tabBorderRadius: 50, tabBorderRadius: 50,
@ -122,8 +121,8 @@ class _HomePageState extends ConsumerState<HomePage> {
color: Theme.of(context).colorScheme.secondary, color: Theme.of(context).colorScheme.secondary,
), ),
tabMargin: const EdgeInsets.fromLTRB(13, 6, 13, 2.5), tabMargin: const EdgeInsets.fromLTRB(13, 6, 13, 2.5),
curve: Curves.easeIn, curve: Curves.fastLinearToSlowEaseIn,
duration: const Duration(milliseconds: 125), duration: const Duration(milliseconds: 25),
gap: 5, gap: 5,
color: const Color.fromARGB(255, 255, 255, 255), color: const Color.fromARGB(255, 255, 255, 255),
activeColor: const Color.fromARGB(255, 255, 255, 255), activeColor: const Color.fromARGB(255, 255, 255, 255),

View File

@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() {
this->Show(); this->Show();
}); });
// Flutter can complete the first frame before the "show window" callback is
// registered. The following call ensures a frame is pending to ensure the
// window is shown. It is a no-op if the first frame hasn't completed yet.
flutter_controller_->ForceRedraw();
return true; return true;
} }