项目作者: imaNNeoFighT

项目描述 :
Curved Bottom Navigation Library
高级语言: Dart
项目地址: git://github.com/imaNNeoFighT/curved_bottom_navigation.git
创建时间: 2020-10-12T23:17:47Z
项目社区:https://github.com/imaNNeoFighT/curved_bottom_navigation

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Curved Bottom Navigation.

pub package

This is implementation of an artwork in Uplabs

Let’s get started

1 - Depend on it

Add this to your package’s pubspec.yaml file:

  1. dependencies:
  2. curved_bottom_navigation: ^1.0.0

2 - Install it

install packages from the command line:

  1. flutter packages get

3 - Import it

Now in your Dart code, you can use:

  1. import 'package:curved_bottom_navigation/curved_bottom_navigation.dart';

5 - Use it like a charm

Make your TabItems

  1. @override
  2. Widget build(BuildContext context) {
  3. return Scaffold(
  4. body: Stack(
  5. children: [
  6. IndexedStack(
  7. index: navPos,
  8. children: [
  9. Page1(),
  10. Page2(),
  11. Page3(),
  12. Page4(),
  13. Page5(),
  14. ],
  15. )
  16. Align(
  17. alignment: Alignment.bottomCenter,
  18. child: CurvedBottomNavigation(
  19. selected: navPos,
  20. onItemClick: (i) {
  21. setState(() {
  22. navPos = i;
  23. });
  24. },
  25. items: [
  26. Icon(Icons.search, color: Colors.white),
  27. Icon(Icons.star, color: Colors.white),
  28. Icon(Icons.home, color: Colors.white),
  29. Icon(Icons.notifications, color: Colors.white),
  30. Icon(Icons.settings, color: Colors.white),
  31. ],
  32. ),
  33. ),
  34. ],
  35. ),
  36. );
  37. }

:moneybag: Donation (bitcoin) :moneybag:

Buy me some food to survive, I would add more features if I was alive

1L7ghKdcmgydmUJAnmYmMaiVjT1LoP4a45