gerais
Não há notas disponíveis!
Scroll com SingleChildScrollView()
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: "Ola Mundo!",
home: Home()));
}
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Calculadora de IMC"),
centerTitle: true,
backgroundColor: Colors.green,
actions: <Widget>[
IconButton(
icon: Icon(
Icons.refresh
),
onPressed: _metodoASerChamado,
)
],
),
backgroundColor: Colors.white,
body: SingleChildScrollView(
child: Stack(
children: <Widget>[
Padding(
padding: EdgeInsets.all(10.0),
child: Column(
children: <Widget>[
Text(
"Olá Mundo!",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
Text(
"Esta é uma App de demo",
style:
TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
),
FlatButton(
child: Text(
"OK",
style: TextStyle(fontSize: 20.0, color: Colors.green),
),
onPressed: () {
print("Clicou no Botão");
},
),
],
),
),
],
),
),
);
}
void _metodoASerChamado() {
print("Clicou no item do menu da AppBar");
}
}