Created
November 21, 2019 10:08
-
-
Save viveky259259/1c0b65b2e0d514eead0180e4c1284ea3 to your computer and use it in GitHub Desktop.
This is Hive example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class HiveExampleUi extends StatefulWidget { | |
@override | |
_HiveExampleUiState createState() => _HiveExampleUiState(); | |
} | |
class _HiveExampleUiState extends State<HiveExampleUi> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Hive example"), | |
), | |
body: Column( | |
children: <Widget>[ | |
Row( | |
children: <Widget>[ | |
FlatButton( | |
child: Text("Add item "), | |
onPressed: () {}, | |
), | |
FlatButton( | |
child: Text("Delete item "), | |
onPressed: () {}, | |
), | |
FlatButton( | |
child: Text("Update item "), | |
onPressed: () {}, | |
), | |
FlatButton( | |
child: Text("Read item "), | |
onPressed: () {}, | |
), | |
], | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment