Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter flutter logo rapido

rapido brings rapid application development principles to mobile development, currently available for flutter.

introduction

rapido makes it simple to build document centric applications by:

  1. providing a documentlist class that makes it wasy to manage user data, including persistence.
  2. provides many of the ui elements that you need to work with documentlist, including listviews, forms, and other widgets. they know how to work with documentlist so provide a ton of functionality with almost no additional coding.
  3. the ability to easily customize the core widgets provided.

show me

create a documentlist and defining labels for fields, and then create a documentlistscaffold like this:

class _myhomepagestate extends state<myhomepage> {
  documentlist tasklist = documentlist("tarea",
      labels: {"date": "date", "task": "task", "priority": "pri count"});

  @override
  widget build(buildcontext context) {
    return documentlistscaffold(tasklist);
  }
}

the rapido widgets infer what kind data is in each field based on the field name. you get all of the functionality with no additional coding:

rapido - flutter rad development

you can replace any widget with your own widget, or you can use built in customization hooks to quickly create your own look and feel.

a closer look

overview of using documentlist

documentlist lies at the core of the r.a.d. experience. by simply using a list, you get:

  1. local persistence of objects.
  2. default crud ui that your users can use for displaying, creating, editing, and deleting documents in the list.

importing

everything you need is in document_list.dart:

import 'package:rapido/document_list.dart';

this import includes documentlist itself, and all of the ui elements that work on it.

documentlist

to create a documentlist, all that is required is to include a “documenttype” string. this string is used by documentlist to organize its documents. then you can add documents to it by simply passing in maps of type map<string, dynamic>.

documentlist tasklist = documentlist("tasks");
tasklist.add({"name":"grocery shopping", "priority": 1, "done": false});

notice that the maps use a string of a key, but the values are dynamic. you can store anything you like in the documentlist.

you can modify and delete documents using normal list functionality.

tasklist[0]  = {"name":"grocery shopping", "priority": 1, "done": true};

you can delete them:

tasklist.removeat[0];

note that all changes to the documentlist are automatically persisted to the user’s phone! the user can close the app, and when they reopen them, the data is still right there.

ui elements

after creating a documentlist, you can use it in a variety of ui elements supplied by rapido. by simply passing in a documentlist, the widgets can figure out themselves what functionality to display to users.

for exampe, if you want to easily create an application that supports adding, removing, and editing documents, you can use the documentlistscaffold class.

documentlistscaffold(tasklist, title:"task list");

documentlistview will create a listview to display and edit the items in the list. it also offers several custimazation options, but the defautls “just work.”

documentlistview(tasklist);

documentform allows easy creation of new documents, or editing of existing ones.

to create a new document:

documentform(tasklist);

to edit an existing one:

documentform(tasklist, index: 0);

feedback welcome

rapido is undergoing rapid development. please visit our github repo to log any issues or features requests. of course, pull requests are most welcome.

roadmap

more typedinputfields

documentform works by creating input fields based on the name of the field in the document. our current plan is to add more typed input fields, such as:

  • switches
  • favorite
  • time and datetime
  • long text

cloud storage and syncing

we plan to make storing and syncing documents with documentlist incredibly easy.

camera widget

we need to dramatically simplify using a camera in your application.

download the full project for this post from the following button

this source is fully free for all time

download as zip


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.