NesaByte / Maslow-Fulfilled

"A Theory of Human Motivation" : Maslow’s theory encompasses his observations and ideas on human needs and motivation.
MIT License
8 stars 3 forks source link

Replace AppBar to CurvedNavigationBar #4

Closed NesaByte closed 3 years ago

NesaByte commented 3 years ago

We have a old looking app, give it a modern look by replacing the AppBar to CurvedNavigationBar.

Check this one: https://pub.dev/packages/curved_navigation_bar

Siddhant-K-code commented 3 years ago

we have to change it in lib/main.dart ??

NesaByte commented 3 years ago

hi there! yes, what do you have in mind?

Siddhant-K-code commented 3 years ago

image

by changing this file's section

NesaByte commented 3 years ago

yes, instead of AppBar we change it to CurvedNavigationBar?

Siddhant-K-code commented 3 years ago

and use this image

we will modify it ?

NesaByte commented 3 years ago

yes please, i'll assign you

Siddhant-K-code commented 3 years ago

we have to add background color and we have to add to this ?:

backgroundColor: Colors.blueAccent,
    items: <Widget>[
      Icon(Icons.add, size: 30),
      Icon(Icons.list, size: 30),
      Icon(Icons.compare_arrows, size: 30),
    ],
  ),
  body: Container(color: Colors.blueAccent),
NesaByte commented 3 years ago

Dont worry about the background color, don't assign anything to it. We have a ThemeData that organizes all the colors: image

Siddhant-K-code commented 3 years ago

image

how to fix this error and how to add text in CurvedNavigationBar

NesaByte commented 3 years ago

remove all these lines: image

those are for the AppBar.

Siddhant-K-code commented 3 years ago

then, for Text ?

NesaByte commented 3 years ago

no more text

Siddhant-K-code commented 3 years ago

how will be print the title and all ?

Siddhant-K-code commented 3 years ago

image is it fine ?

NesaByte commented 3 years ago

no need to print the title, its included in the appbar. we remove it completely.

NesaByte commented 3 years ago

change the Icon.* to home and calender

Siddhant-K-code commented 3 years ago

image

Done, Pls check it once

NesaByte commented 3 years ago

superb, looks good to me. do u have an emulator? what does it looks like now?

Siddhant-K-code commented 3 years ago

Thanks, but, sorry my laptop is unable to handle emulator.

NesaByte commented 3 years ago

oooh i see, need to check it out how it looks like. but overall good job

NesaByte commented 3 years ago

👍 thank you, I'll test it out soon tomorrow. It's late-night here right now.

NesaByte commented 3 years ago

fixed this at -> commit - ed74cb