Skip to content

Adaptive widgets that automatically select Material Design for Android/Web/Desktop and Cupertino for iOS.

License

Notifications You must be signed in to change notification settings

KalybosPro/flutterx

FlutterX

pub package

Adaptive widgets that automatically select Material Design for Android/Web/Desktop and Cupertino for iOS.

Installation

dependencies:
  flutterx: ^1.0.0

Usage

import 'package:flutterx/flutterx.dart';

void main() => runApp(
  FxApp(
    title: 'My App',
    home: FxScaffold(
      appBar: FxAppBar(title: Text('FlutterX')),
      body: Center(
        child: FxButton(
          child: Text('Press Me'),
          onPressed: () => print('Pressed!'),
        ),
      ),
    ),
  ),
);

Widgets

Widget Description
FxApp Root application widget
FxScaffold Basic screen layout
FxAppBar App bar with title and actions
FxButton Primary action button
FxTextButton Text-only button
FxTextField Text input field
FxSwitch Toggle switch
FxSlider Value selection slider
FxCheckbox Checkbox
FxRadio Radio button
FxActivityIndicator Loading spinner

Examples

See the example/ directory for a complete demo:

cd example
flutter run

Documentation

License

MIT

About

Adaptive widgets that automatically select Material Design for Android/Web/Desktop and Cupertino for iOS.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published