mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-08-06 14:51:08 +08:00
added: persist_key_value
This commit is contained in:
25
persist_key_value/lib/main.dart
Normal file
25
persist_key_value/lib/main.dart
Normal file
@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
var nameOfApp = "Persist Key Value";
|
||||
|
||||
runApp(new MaterialApp(
|
||||
// Title
|
||||
title: nameOfApp,
|
||||
// Home
|
||||
home: new Scaffold(
|
||||
// Appbar
|
||||
appBar: new AppBar(
|
||||
// Title
|
||||
title: new Text(nameOfApp),
|
||||
),
|
||||
// Body
|
||||
body: new Container(
|
||||
// Center the content
|
||||
child: new Center(
|
||||
// Add Text
|
||||
child: new Text("Hello World!"),
|
||||
),
|
||||
),
|
||||
)));
|
||||
}
|
Reference in New Issue
Block a user