+ vscode night owl theme

This commit is contained in:
committer
2024-05-15 07:15:59 -05:00
parent e2c14487aa
commit d18120752c
51 changed files with 19760 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
import 'package:flutter/material.dart' as material;
void main(){
runApp(
new MaterialApp(
home: new MyButton(),
)
);
}
class MyButton extends StatefulWidget{
@override
MyButtonState createState() => new MyButtonState();
}
class MyButtonState extends State<MyButton>{
String flutterText = "";
List<String> collection = ['Flutter', 'is', 'great'];
int index = 0;
void changeText(){
setState(
() {
flutterText = collection[index];
index++;
index = index % 3;
}
);
}
@override
Widget build(BuildContext context){
return new Scaffold(
appBar: new AppBar(
title: new Text("Stateful Widget"),
backgroundColor: Colors.orangeAccent,
),
body: Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
flutterText,
style: new TextStyle(fontSize: 40.0)
),
new Padding(
padding: new EdgeInsets.all(10.0)
),
new RaisedButton(
child: new Text(
"Update",
style: new TextStyle(color: Colors.white)
),
color: Colors.blueAccent,
onPressed: changeText,
)
],
)
)
);
}
}