YT Video:

https://youtu.be/ABmqtI7ec7E?si=lAHCjsoXYpxzQILb

Icons:

[All child kept inside center widget]

Icons can be added by Icon widget.

        child: Icon(
          Icons.fingerprint_outlined,
          weight: 100,
        ),

The first property (without any name) should be the icon name, then other properties can be defined as required.

Buttons:

(RaisedButton and FlatButton have been renamed to ElavatedButton and OutlinedButton respectively)

Similar to adding other widgets, use button as a child of any other parent widget (e.g. body: ), now add the widget for button, and must write a child within the button (e.g. Text or Icon).

ElavatedButton:

        child: ElevatedButton(
          child: Text('Click me'),
          onPressed: () {
            print('you clicked me');
          },          
        ), //ElavatedButton

OutlinedButton:

        child: OutlinedButton(
          child: Text('Click me'),
          onPressed: () {
            print('you clicked me');
          },          
        ), //OutlineButton

Icon Inside button:

        child: OutlinedButton.icon(
          onPressed: (){},
          icon: Icon(
            Icons.email,
            color: Color.fromARGB(245, 57, 16, 99),
            size: 24,
          ),
          label: Text('Email'))