mirror of
https://github.com/dstark5/Openlib.git
synced 2025-08-06 15:18:54 +08:00
removed ripple effect from bottom nav
This commit is contained in:
@ -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),
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user