sbb_design_system_mobile 2.3.0 copy "sbb_design_system_mobile: ^2.3.0" to clipboard
sbb_design_system_mobile: ^2.3.0 copied to clipboard

The official SBB design system mobile for Flutter.

example/example.md

Start by including the SBBTheme in your app root.

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(),
    );
  }
}
copied to clipboard

You may then use any widgets, colors and fonts available.

import 'package:sbb_design_system_mobile/sbb_design_system_mobile.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: const SBBHeader('My Home Page'),
      body: Center(
        child: Container(
          color: SBBColors.blue
          width: 100,
          height: 100
        )
      )
    );
  }
}



copied to clipboard
4
likes
140
points
772
downloads

Publisher

verified publishersbb.ch

Weekly Downloads

2024.09.29 - 2025.04.13

The official SBB design system mobile for Flutter.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#icons #theme #design #design-system

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, intl

More

Packages that depend on sbb_design_system_mobile