ashim-kr-saha / hacker_news

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Redux Starter/Code Generator

Flutter Redux Starter

Videos

We're using this approach to develop the Flutter app for Invoice Ninja.

Usage

Step 1: Clone the GitHub repo

git clone git@github.com:hillelcoren/flutter-redux-starter.git <application> && cd <application>

Step 2: Upgrade the packages

flutter pub upgrade

Step 3: Initialize the project

./starter.sh init <company> <application> <url>

Step 4: Create the module

./starter.sh make <application> <module> <fields>

Step 5: Upgrade to AndroidX project

Go to android\app\build.gradle and change

compileSdkVersion 29 minSdkVersion 21 targetSdkVersion 29

Go to android\gradle.properties and add following lines

android.useAndroidX=true android.enableJetifier=true

For example:

git clone git@github.com:hillelcoren/flutter-redux-starter.git hacker_news && cd hacker_news
./starter.sh init hacker_news articles api.hackerwebapp.com
flutter pub upgrade
./starter.sh make articles article title,url
# Change the route on line 20 of lib/data/repositories/article_repository.dart from /articles to /news
flutter run

Note: on macOS sed leaves behind backup files ending with -e, you can use this command to delete the files:

find . -name "*-e" -type f -delete

Features

  • Supports large Redux stores by persisting parts separately
  • App state (including navigation) is persisted on form changes
  • Automatically implements support for sorting and searching
  • The account email is also backed up in shared preferences
  • All state and models classes are created using built_values

Included Packages

Application Architecture

The architecture is based off these two projects:

About


Languages

Language:Dart 81.3%Language:Shell 17.5%Language:Objective-C 0.8%Language:Java 0.4%