Guest User

Untitled

a guest
Jun 26th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return DefaultTabController(
  2. length: 2,
  3. child: Scaffold(
  4. appBar: PreferredSize(
  5. child: AppBar(
  6. backgroundColor: Colors.greenAccent,
  7. bottom: TabBar(
  8. controller: tabController,
  9. tabs: [
  10. Tab(
  11. child: Text("Login"),
  12. ),
  13. Tab(
  14. child: Text("Sign Up"),
  15. ),
  16. ],
  17. indicatorColor: Colors.black,
  18. ),
  19. flexibleSpace: Container(
  20. decoration: BoxDecoration(
  21. gradient: LinearGradient(
  22. colors: [
  23. Colors.red,
  24. Colors.orange,
  25. ],
  26. ),
  27. ),
  28. ),
  29. ),
  30. preferredSize: Size.fromHeight(200.0),
  31. ),
  32. body: TabBarView(
  33. controller: tabController,
  34. children: [
  35. LoginApp(),
  36. SignUpApp(),
  37. ],
  38. ),
  39. ),
  40. );
RAW Paste Data