platform_widgets 0.1.1 platform_widgets: ^0.1.1 copied to clipboard
A Flutter plugin for Platform widgets. This package simplifies the usage of specific widgets for both Android and iOS.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add platform_widgets
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
platform_widgets: ^0.1.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:platform_widgets/base/platform_app.dart';
import 'package:platform_widgets/base/platform_theme.dart';
import 'package:platform_widgets/base/platform_widget.dart';
import 'package:platform_widgets/platform_bar.dart';
import 'package:platform_widgets/platform_button.dart';
import 'package:platform_widgets/platform_scaffold.dart';