Skip to content

Flutterista/platform_widgets

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Platform Widgets

Flutter Dart

A Flutter plugin for Platform specific widgets.

Usage

To use this plugin, add platform_widgets as a dependency in your pubspec.yaml file.

Available Widgets

  • PlatformApp returns CupertinoApp when iOS and MaterialApp when Android.

  • PlatformTheme's ios property returns CupertinoThemeData and android property returns ThemeData.

  • PlatformScaffold returns CupertinoPageScaffold when iOS and Scaffold when Android.

  • PlatformBar returns NavigationBar when iOS and AppBar when Android.

  • PlatformButton returns CupertinoButton when iOS and FlatButton when Android.

  • PlatformSwitch returns CupertinoSwitch when iOS and Switch when Android.

  • PlatformSlider returns CupertinoSlider when iOS and Slider when Android.

  • PlatformIndicator returns CupertinoActivityIndicator when iOS and CircularProgressIndicator when Android.