All the tools you need to build an app in 2 minutes

Related tags

Templates cc_core
Overview

cc_core

All the tools you need to build an app in 2 minutes..

Getting Started

Android:

set the kotlin version to at least '1.4.0' in build.gradle should look like this:

ext.kotlin_version = '1.4.0'

iOS

idk haven't run it on an iPhone yet

Database schema

Menus

So for the menus table, you need five columns:

  • name
  • id
  • type
  • appScreen
  • appScreenParam
name

The name that will appear in the app.

id

The internally used id, these must be unique. Can be either int or string.

type

This is how the screen is accessed. Here there are four options:

  • homeScreen
  • leftSide
  • bottom
  • intro

There can only be one homeScreen and it is the first screen the user would normally see when opening the app.

leftSide is the left hamburger menu.

bottom is the bottom app bar menu.

intro is the screen the user sees when the open the app for the first time. It's recommended you use a SwipeableIntroScreen, but you can use whatever you wish.

It's recommended that you also copy the homeScreen onto either leftSide, or bottom so the users can access it again once they've navigated away.

appScreen

This is the actual screen you want the app to open. All available pre-installed screens can be seen in appScreens.md.

appScreenParam

This is all the info passed to the screen. This may be a url for an image on an image screen or a table name for a menu screen.

Style

For the style table, you only need three columns:

  • name
  • value
  • id
name

You've only got eight options here.

  1. appBarBackground : String int colour value. "0xFF00FF00" would be 100% opacity green for instance. This will set the background colour of the app bar. Defaults to blue.

  2. backgroundColor : String int colour value. This will set the background colour of the side menu. Defaults to white.

  3. appBarBanner : Url. An image to add to the app bar. If set to "false", the app won't show an app bar, but if it is empty or omitted completely, the apps name will be used instead.

  4. appBarButtonColor : String int colour value. Sets the colour of the side menu button. Defaults to white.

  5. primaryColor : String int colour value. Sets the primary theme colour of the app. Defaults to blue.

  6. accentColor : String int colour value. Sets the accent theme colour of the app. Defaults to blueAccent.

  7. sideDrawerType : String enum value. Sets the look of the side menu.

  • appBarBannerAtTop : puts the appBarBanner at the top of the menu.
  • compendiumStyle : doesn't extend fully to the top and bottom, has rounded corners.
  • standard : normal side menu. Defaults to standard.
  1. defaultListViewStyle : Comma separated key-value pair that define the default style property of a listview item. More info about the properties them selves can be found in appScreens.md under ListViewScreen > style.
value

See above.

id

Must be unique.

Translation Layer

Did you decide to make your database before checking the README? Well if the answer is yes, you're in luck! We've built a solution for just this problem and it's called the Translation Layer. All it needs is a small json file to understand your mess of a database.

It's layed out like so :

{
  "yourTableName": {
    "table": "yourTableName",
    "filters": [
      {
        "field": "field",
        "op": "equals",
        "value": "value"
      }
    ],
    "output": {
    }
  }
}

Lets break this down a bit.

  • "yourTableName" This is the table or faux table that needs to be translated. Whenever this table is accessed in the app, it will be intercepted by the translation layer which will apply the filters and parse the result.

  • "table" This is the actual table in the database the app is going to get. This means that you can have multiple "faux" tables that all just apply filters to a single giant table. This is required.

  • "filters" These are the filters that will be applied when getting data from the database. This is not required if you don't need to filter the results.

    This is a list of objects that contain three keys

    1. "field" This is the database column to check against.
    2. "op" This is the operation to perform. Can be either 'equals' or 'arrayContains'.
    3. "value" This is the value that the field should match, or the array should contain
  • "output" This is what the end result will output. It should be structured to match whatever component is using this data. Using curly brackets ({}), you can interpolate the values from your database into the result. This is not required if you don't need any special parsing.

Here's an example of a translation layer set up to get songs from an entertainment table and return them in the ListViewScreen schema.

{title}
{creator},{coverArt}", "style": "imageSize:120,elevation:1.5,cornerRadius:25" } } }">
{
  "songs": {
    "table": "entertainment",
    "filters": [
      {
        "field": "category",
        "op": "equals",
        "value": "Songs"
      }
    ],
    "output": {
      "id": "{id}",
      "name": "{title}",
      "tileImageUrl": "",
      "appScreen": "SmallAudioPlayer",
      "appScreenParam": "{contentUrl},{title}
{creator},{coverArt}"
, "style": "imageSize:120,elevation:1.5,cornerRadius:25" } } }

Here's an example of the database that this is translating:

{
  "0": {
    "id": "0",
    "category": "Songs",
    "title": "Never Gonna Give You Up",
    "creator": "Rick Astley",
    "contentUrl": "https://www.songbank.com/never_gonna_give_you_up/mp3.mp3",
    "coverArt":"https://www.songbank.com/never_gonna_give_you_up/image.jpg"
  }
}

You can see that we're using almost all the data in the output, but it's shuffled around quite a bit.

You might also like...

Control your week, days, hours, and even minutes. ⏳

Control your week, days, hours, and even minutes. ⏳

Info An advanced, minimalist, and powerful time management application. Where you can create the task, give it a duration, and select which weekdays y

Dec 18, 2022

The one and only Docker Tool you will ever need again

# container_tool A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you

Nov 17, 2021

A composable, light-weight package that can be used as a placeholder whenever you need some fake data

API Placeholder A composable, light-weight package that can be used as a placeholder whenever you need some fake data. With this package, you can get

Feb 27, 2022

Do you need logs? Lumberdash is the answer!

lumberdash Do you need logs? Lumberdash is the answer! With a simple but powerful logging API, Lumberdash is the easiest way to record logs. And if th

Dec 12, 2022

Serialize almost everything you ever need! πŸ“¦ Supports serializing MaterialColor, Color, Size, Locale, IconData, UuidValue, DateTime, Directory, File, Duration, and many more.

Serialize almost everything you ever need! πŸ“¦ Supports serializing MaterialColor, Color, Size, Locale, IconData, UuidValue, DateTime, Directory, File, Duration, and many more.

osum_serializable The goal is to serialize almost everything you ever need! json_serializable is an amazing package to serialize classes but cannot se

Sep 23, 2022

From then on, developers only need to master one Button component, which is enough.

From then on, developers only need to master one Button component, which is enough.

FButton From then on, developers only need to master one Button component, which is enough. Support corners, borders, icons, special effects, loading

Nov 22, 2022

πŸ• FoodHub App is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Provider, Sqlite, Testing, Flash Dialog, Notification, Alarm Schedule, Dark Mode Theme, etc.

πŸ• FoodHub App is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Provider, Sqlite, Testing, Flash Dialog, Notification, Alarm Schedule, Dark Mode Theme, etc.

FoodHub App Features List Restaurant Detail Restaurant Restaurant Favorite Search Restaurant Schedule Notification Dark Mode Theme Quick start This is

Jul 27, 2023

Find The Latest trending and upcoming movies and tv shows with MovieDB app. The app contains all info about movies and tv shows. find similar movies or shows, Browse all genres, video trailers, backdrops, logos, and posters.

MovieDB App Features. Dynamic Theming Search Functionality Onboarding-Screen Select favourite movie Home Screen Tranding movie Movies different catego

Dec 12, 2022
Owner
CoCreations
CoCreations is a software house that works with you to develop mobile apps and systems that take your business to the next level.
CoCreations
Aq flutter tools - AQ flutter tools - Responsive Images, Translations and more

Made by AQuadic Getting started Important Links AQuadic Script Requirement This

Aquadic 0 Feb 7, 2022
Create flutter project with all needed configuration in two minutes (theme, localization, connect to firebase, FCM, local notifications, safe API call, error handling, animation..etc)

Flutter GetX Template Flutter Getx template to make starting project fast and easy . Introduction We all face the same problem when we want to start a

Emad Beltaje 150 Jan 7, 2023
A flutter package that provides all icons you need

Before starting βœ‹ . I want to tell you that every star ?? added to my space shines my world and motivate me ?? to make more awesome things like this o

Andrew Nasef 47 Dec 29, 2022
A flutter app that gives you affirmation you daily need by saying "I am Freaking rich!"

A very basic flutter app that gives you affirmation you daily need by saying "I am Freaking rich!" ?? What’s In This Document Get Up and Running in 5

Bhavuk kalra 1 Feb 15, 2022
A flutter package that helps you create an on-boarding screen for your project within minutes just by providing a few parameters.

A flutter package that helps you create an on-boarding screen for your project within minutes just by providing a few parameters.

Sachin Kr. Shukla 40 Sep 27, 2022
Ozzie is your testing friend. Ozzie will take an screenshot during integration tests whenever you need. Ozzie will capture performance reports for you.

ozzie.flutter Ozzie is your testing friend. Ozzie will take an screenshot during integration tests whenever you need. Ozzie will capture performance r

Jorge Coca 40 Nov 3, 2022
Provide powerfull tools to help you build your Flutter design system.

Provide powerfull tools to help you build your design system. About flutter_design contains packages to help you bootstrap your design system with a w

Min Zhao 23 Dec 3, 2022
Create native settings for Flutter app in a minutes.

Settings UI for Flutter Installing: In your pubspec.yaml dependencies: settings_ui: ^1.0.1 import 'package:settings_ui/settings_ui.dart'; Basic Usag

Yako 716 Dec 29, 2022
Fluttersettingsui - Fork of settingsui. Create native settings for Flutter app in a minutes.

Settings UI for Flutter Installing: In your pubspec.yaml dependencies: flutter_settings_ui: ^1.0.1 import 'package:flutter_settings_ui/flutter_setti

Julian Steenbakker 22 Oct 24, 2022
The app you need for Genshin Impact

Shiori A Genshin Impact database kinda app This app is not affiliated with or endorsed by miHoYo. Shiori is just a database app for the Genshin Impact

Efrain Bastidas 153 Dec 17, 2022