rapido 0.2.4 rapido: ^0.2.4 copied to clipboard
Rapid Application Development for Flutter. Automatically persisting user data, and creates default CRUD UI.
import 'package:flutter/material.dart';
import 'package:rapido/rapido.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Rapido Demo',
home: RapidoExample(title: 'Rapdio'),
);
}
}
class RapidoExample extends StatefulWidget {
RapidoExample({Key key, this.title}) : super(key: key);
final String title;
@override
_RapidoExampleState createState() => _RapidoExampleState();
}
class _RapidoExampleState extends State<RapidoExample> {
// Create a Document with a documentType string of your choice.
// Include a map of lables for the fields in the document type.
final DocumentList documentList = DocumentList(
"task list",
labels: {
"Complete": "done?",
"Date": "date",
"Title": "title",
"Note": "subtitle",
"Priorty": "pri count"
},
);
// Build a DocumentListScaffold to provide the UI for users to
// create, edit, and delete documents
@override
Widget build(BuildContext context) {
return DocumentListScaffold(
documentList,
title: "Tasks",
);
}
}