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.