flongo_client 0.0.4 copy "flongo_client: ^0.0.4" to clipboard
flongo_client: ^0.0.4 copied to clipboard

outdated

Seamless frontend for Flongo-Framework for web and mobile

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.

final FlongoApp app = FlongoApp(
  router: AppRouter(
    routeBuilders: {
      '/_splash': (context, args) => const SplashScreen(),
      '/': (context, args) => const LoginPage(),
      '/home': (context, args) => const HomePage(),
      '/config': (context, args) => const 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 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 pswanson@ucdavis.edu!

1
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Seamless frontend for Flongo-Framework for web and mobile

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_dotenv, flutter_svg, http, lottie

More

Packages that depend on flongo_client