platform_widgets 0.1.1 copy "platform_widgets: ^0.1.1" to clipboard
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.

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
40
pub points
0%
popularity

Publisher

verified publisherflutterista.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

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on platform_widgets