baymax 1.0.0 copy "baymax: ^1.0.0" to clipboard
baymax: ^1.0.0 copied to clipboard

Shared, app-agnostic Flutter building blocks: a typed network client, an adaptive app shell, themeable design tokens, and environment config.

baymax #

pub package license: BSD-3-Clause

Shared, app-agnostic building blocks for any Flutter app: a typed networking layer, environment config, an app shell, and design tokens.

dependencies:
  baymax: ^1.0.0

Quick start #

import 'package:baymax/baymax.dart';
import 'package:flutter/material.dart';

void main() {
  EnvConfig.init(
    environment: Environment.dev,
    baseUrls: {
      Environment.dev: 'https://dev.example.com',
      Environment.qa: 'https://qa.example.com',
      Environment.prod: 'https://example.com',
    },
  );
  runApp(const MaterialApp(home: Scaffold(body: Center(child: Text('Hello, baymax!')))));
}

See example/ for a runnable app using AdaptiveScaffold and the theming extensions.

Full documentation #

See doc/ for the complete reference — networking, config, the app shell, design tokens, and a performance audit against docs.flutter.dev/perf.

Development #

  • flutter pub get
  • dart analyze
  • dart format --line-length 120 .
  • flutter test

Pre-commit hooks (lefthook.yml) mirror these checks; run them manually if hooks aren't installed locally.

1
likes
150
points
38
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared, app-agnostic Flutter building blocks: a typed network client, an adaptive app shell, themeable design tokens, and environment config.

Repository (GitHub)
View/report issues

Topics

#flutter #networking #theming

License

BSD-3-Clause (license)

Dependencies

dio, flutter, fpdart

More

Packages that depend on baymax