2. Advanced properties of container.
Linear Gradient : enables you to combine between many colors.
begin & end: the beginning and end of gradient.
Box Shadow: add highlight to the container.
Spread radius: the spread of color outside the widget.
Blur radius: the degree of blur( طمس
اللون ), when increase the
color degree decreases.
21. TextFormField and validation
The job of the TextFormField is to render the UI
interface for the user to interact with and to
display the validation error once the user enters
invalid data.
The validator method returns a string containing
the error message when the user input is invalid
or null if the user input is valid.
22. TextFormField and Validation
2- use Global key.
1- wrap the List or Column widgets with
A Form().
3- use TextFormField widget inside the
List or the column.
4- Inside the TextFormField use the Validation.
5-use globally to check validation in if statement
26. Use initState
Called when this object is inserted
into the tree.
The framework will call this method
exactly once for each State object it
creates.
Push Replacment
Replace the current route of the
navigator by pushing the given
route and then disposing the
previous route once the new route
has finished animating in.
27. What is named routes
Routes
if you need to navigate to the same
screen in many parts of your app,
this approach can result in code
duplication. The solution is to define
a named route, and use the named
route for navigation.
Use pushNamed
The name of the screen