Giter Site home page Giter Site logo

topazoo / flongo-client Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 114 KB

Seamless frontend for Flongo Framework that provides out of the box widgets for connecting to the API, storing authentication sessions and more

License: BSD 3-Clause "New" or "Revised" License

Shell 0.42% Dart 99.58%

flongo-client's Introduction

Flongo Client

Seamless frontend for Flongo-Framework that provides out of the box widgets for connecting to the API, storing authentication sessions and more.

Features

  • Built in HTTP Client for connecting to the server
  • Simple router that allows pages to be easily specified
  • Easy custom animations and one-off transitions
  • Abstract pages to handle rendering JSON data
  • Works on mobile and web!

Usage

You can see an example client defined in the /example folder.

import 'package:flongo_client/app.dart';
import 'package:flongo_client/app_router.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

import 'pages/config/page.dart';
import 'pages/home/page.dart';
import 'pages/login/page.dart';
import 'splash/page.dart';
import 'theme.dart';

final FlongoApp app = FlongoApp(
  router: AppRouter(
    routeBuilders: {
      '/_splash': (context, args) => const SplashScreen(),
      '/': (context, args) => LoginPage(),
      '/home': (context, args) => HomePage(),
      '/config': (context, args) => ConfigPage(),
    },
  ),
  initialRoute: '/_splash',
  appTheme: ThemeData(primarySwatch: AppTheme.primarySwatch),
);


void main() async {
  await dotenv.load(fileName: 'assets/.env');
  runApp(app);
}

The application:

  • Serves a default splash sceen on /_splash
  • Renders a login page on / that connects to a Flongo Framework server
  • Renders a dynamic navbar
  • Renders a home page on / for authenticated users
  • Renders a JSON List view page on /config for admin users with basic CRUD support

Additional information

View on Github

For futher information please contact [email protected]!

flongo-client's People

Contributors

topazoo avatar

Watchers

 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.