GithubHelp home page GithubHelp logo

jui3s / flutter-skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tylersavery/flutter-skeleton

0.0 0.0 0.0 451 KB

JavaScript 2.94% Ruby 1.17% Objective-C 0.02% Kotlin 0.06% Dart 91.55% Swift 0.56% Makefile 0.15% HTML 3.55%

flutter-skeleton's Introduction

flutter_skeleton

Flutter app skeleton using flutter_riverpod, dotenv, auto_route, get_it, freezed, and dio

Overview

This skeleton has all the basic boilerplate for common challenges in software development. It is setup assuming there is a basic RESTful api associated with it, but that can be removed fairly easily if this doesn't require an API.

This is meant for full cross platform apps and has responsiveness at its core. All UI is separated from the business logic (BLoC) but doesn't use the flutter_bloc library - instead: riverpod.

Each feature should be built in its own self-contained folder under the "features" directory. Larger features should be broken up into the following subfolders but simpler ones can just have the files within.

  • components: UI components
  • screens: UI screen containers (ie. pages)
  • models: data models representing the data of your feature
  • providers: state management for the feature
  • services: handling data from an external service / api

Features

  • state management reading/writing and watching to update UI
  • singletons for things like storage
  • localization
  • responsiveness for breakpoints/scaling
  • apply different screen/component layouts for desktop by overriding

starting out

  1. clone the repo
  2. replace all instances of flutter_skeleton with your project_name (use the find replace tool in your IDE)
  3. copy the assets/env/example_env as assets/env/dev_env and fill out as needed
  4. remove and features not required as well as references to them
  5. run generate function watcher below
  6. run your app in chrome, ios, android, mac, etc.

generate

make gen
# OR watch for updates:
make gen_watch

l10n

  • install Flutter Intl plugin (for your IDE)
  • read the docs on that plugin, it is super helpful!
  • TIP: You can highlight strings and then click the lightbulb to "extract arb"
  • make sure the following is imported to the files that have localization
import 'package:flutter_skeleton/generated/l10n.dart';

Build

make build_web

flutter-skeleton's People

Contributors

tylersavery avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.