Skip to content
pubscout

masamune_universal_ui

3.4.1, released 9 days ago by mathru.net

A responsive universal UI framework package for writing platform-independent code.

$ flutter pub add masamune_universal_ui
Source repository

What it does

Provides a collection of responsive widgets like UniversalScaffold, UniversalAppBar, UniversalColumn, and UniversalListView that automatically adjust padding and layouts across mobile, web, and desktop. Uses a 12-column grid system inspired by Bootstrap.

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

Use it when

  • You want a single codebase to target web, mobile, and desktop platforms seamlessly.
  • You are already using the Masamune framework in your application.
  • You need a Bootstrap-like 12-column responsive layout system in Flutter.

Skip it when

  • You want pure, platform-native Cupertino or Material designs without custom layout abstractions.
  • You are not using the Masamune framework and want an independent UI package.

Strengths

  • Reduces code duplication across web, desktop, and mobile devices.
  • Familiar Bootstrap-inspired 12-column grid system via Responsive widgets.
  • Built-in support for iPadOS window controls avoidance.

Weaknesses

  • Tightly coupled to the Masamune framework ecosystem.
  • Requires learning custom wrapper widgets instead of standard Flutter components.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

Initialize by passing UniversalMasamuneAdapter to masamuneAdapters in runMasamuneApp along with the masamune package.

Widget build(BuildContext context, PageRef ref) {
  return UniversalScaffold(
    appBar: UniversalAppBar(title: Text("Title")),
    body: UniversalColumn(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text("User Name")
      ],
    ),
  );
}

Alternatives

Packages that do the same job and could replace masamune_universal_ui.

  • responsive_framework

    If you need an independent package to automatically scale and adapt UIs across different screen sizes without rewriting your standard Scaffold and widgets.

  • responsive_builder

    If you prefer explicit layout builders for different screen size breakpoints rather than a bootstrap-like grid component library.

Works with

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