homeNavItem.dart 684 B

1234567891011121314151617181920212223242526272829303132
  1. import 'package:flutter/cupertino.dart';
  2. /// Define the widget used in polkawallet app home page.
  3. class HomeNavItem {
  4. HomeNavItem({
  5. required this.text,
  6. required this.content,
  7. this.icon,
  8. this.iconActive,
  9. this.isAdapter = false,
  10. this.onTap,
  11. });
  12. /// Text display in BottomNavBar.
  13. final String text;
  14. /// Icon display in BottomNavBar(Have been abandoned).
  15. final Widget? icon;
  16. /// Icon display in BottomNavBar(Have been abandoned).
  17. final Widget? iconActive;
  18. /// Page content for this nav item.
  19. final Widget content;
  20. /// V3 adapter
  21. final bool isAdapter;
  22. /// isAdapter=false&&Items.length>1 , To come into force
  23. Function()? onTap;
  24. }