-1
I’m trying to put my logo on the login page of my app, but I’m not getting it.
Obs.: I am beginner in language and I’m adapting to widgets.
return Scaffold(
body: Center(
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFF01ECFD),
Color(0xFF009AFA),
])),
child: Padding(
padding: const EdgeInsets.all(36.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(
height: 155.0,
child: Image.asset(
"assets/logo.png",
fit: BoxFit.contain,
),
),
SizedBox(height: 45.0),
emailField,
SizedBox(height: 25.0),
passwordField,
SizedBox(
height: 35.0,
),
loginButton,
SizedBox(
height: 15.0,
),
],
),
),
),
),
);
Do you have an image of what it should look like? Or any of what this code generates for you? Be more specific in your question if you want some answer, What kinds of questions should I avoid asking?
– Leo Letto