Skip to content
pubscout

sbb_design_system_mobile

5.3.0, released 5 days ago by sbb.ch

Official SBB design system mobile UI components and theming for Flutter apps.

$ flutter pub add sbb_design_system_mobile
Source repository

What it does

Provides official SBB (Swiss Federal Railways) design system components, color schemes, themes, and typography for mobile applications. It supports both light and dark themes, as well as off-brand variants.

AI-written summary of version 5.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a mobile application for or related to SBB.
  • You want to enforce the official SBB design system and UI components in Flutter.

Skip it when

  • You are building a standard Material or Cupertino app without SBB branding requirements.

Strengths

  • Pixel-exact implementation of the SBB Design System Mobile.
  • Built-in light and dark theme configurations with customizable color schemes and theme extensions.

Weaknesses

  • Very specific to SBB branding, limiting its applicability for general-purpose apps.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add SBBTheme.light or SBBTheme.dark to the app root MaterialApp theme configurations.

import 'package:sbb_design_system_mobile/sbb_design_system_mobile.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'SBB DSM',
      theme: SBBTheme.light(),
      darkTheme: SBBTheme.dark(),
      home: const MyHomePage(),
    );
  }
}

Alternatives

Packages that do the same job and could replace sbb_design_system_mobile.

  • material_ui

    If you prefer standard Google Material design components instead of the SBB design system.

  • cupertino_ui

    If you prefer standard Apple iOS-style components instead of the SBB design system.

Works with

Packages commonly used together with sbb_design_system_mobile: ones it builds on, ones built on it, and its own family.