platform_widgets 0.1.1
platform_widgets: ^0.1.1

A Flutter plugin for Platform widgets. This package simplifies the usage of specific widgets for both Android and iOS.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:platform_widgets/base/platform_app.dart';
import 'package:platform_widgets/platform_scaffold.dart';
import 'package:platform_widgets/platform_button.dart';
import 'package:platform_widgets/platform_bar.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return PlatformApp(
      home: PlatformScaffold(
        appbar: PlatformBar(
          middle: Text('Example App'),
        ),
        child: Center(
          child: PlatformButton(
            child: Text('Example Button'),
            onPressed: () => print('On Button Pressed'),
          ),
        )
      ),
    );
  }
}
6
likes
60
pub points
34%
popularity

Publisher

flutterista.dev

A Flutter plugin for Platform widgets. This package simplifies the usage of specific widgets for both Android and iOS.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on platform_widgets