Adaptive widgets that automatically select Material Design for Android/Web/Desktop and Cupertino for iOS.
dependencies:
flutterx: ^1.0.0import '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!'),
),
),
),
),
);| 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 |
See the example/ directory for a complete demo:
cd example
flutter run- API Reference - Complete technical documentation
- API Guide - Usage examples and best practices
MIT