Search packages, repositories and app categories

Package detailsv0.1.0

platform_ui

Platform specific Widgets and UI toolkit

30-day downloads
18
Likes
41
Pub points
40

Install package

flutter pub add platform_ui

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Platform UI is a Flutter/Dart package providing platform-specific widgets and a UI toolkit designed to deliver native-like experiences across iOS, Android, and other platforms. It offers adaptive components that automatically adjust their appearance and behavior based on the target platform, ensuring consistency with platform conventions. The package simplifies cross-platform development by abstracting platform differences while maintaining visual fidelity. With minimal setup via `flutter pub add platform_ui`, developers can enhance UI responsiveness and user experience without writing platform-specific code.

Use cases

  • Building cross-platform apps with native look and feel
  • Creating adaptive UIs for iOS and Android
  • Simplifying platform-specific widget implementation
  • Enhancing UI consistency across devices
  • Reducing boilerplate for platform-aware components

Key features

  • Auto-adaptive widgets for different platforms
  • Minimal configuration required
  • Supports iOS and Android design guidelines
  • Extensible widget architecture
  • Built-in theming for platform consistency

Suitable for

  • Cross-platform Flutter developers
  • Teams prioritizing native UX
  • Apps targeting multiple operating systems
  • Developers seeking reduced platform-specific code
  • Projects requiring consistent UI across devices

Considerations

  • Limited to iOS and Android (no desktop/web support mentioned)
  • Depends on external dependencies for full functionality
  • May require additional customization for complex UI needs
  • Not suitable for apps needing highly customized non-native designs
  • No explicit documentation on performance impact

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Platform UI

by @KRTirtho

Flutter platform specific UI widgets

It mimics the native UI widgets (android, iOS, macOS, linux and windows) as much as possible in Flutter & has a wide collection of platform specific widgets. The names and APIs are similar to Flutter's Material UI widgets to make the Flutter developer feel at home. It's utilizes:

Feature Highlights

  • Simple and customizable platform specific UI widgets
  • Supports all major platforms (android, iOS, macOS, linux and windows)
  • Exposes the internal API to build widgets on top of it
  • Changeable default TargetPlatform for overriding platform design in another platform (it's crazy but cool)
  • Wide collection of platform specific widgets
  • Widget APIs are similar to Flutter's Material UI widgets
  • Dark Mode support

Install

Run following in a terminal:

$ flutter pub add platform_ui fluent_ui macos_ui libadwaita adwaita

Preview

https://krtirtho.github.io/platform_ui/

Usage

Import the package:

import 'package:platform_ui/platform_ui.dart';

Example

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PlatformApp(
      title: 'Platform UI',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PlatformScaffold(
      appBar: PlatformAppBar(
        title: Text('Platform UI'),
      ),
      body: Center(
        child: PlatformText(
          'Hello World',
          style: TextStyle(fontSize: 30),
        ),
      ),
    );
  }
}

Documentation

Screenshots

Desktop (Linux → Macos → Windows)

Desktop

Mobile (Android → iOS)

Mobile

Support

If you like this project, please consider supporting it by:

  • Starring and sharing the project
  • Following @KrTirtho on Twitter
  • Buying us a coffee ☕️

License

MIT

Categories

Dependencies

Dependency list 8 items

Source repository

Projects using this package

No data available yet.