forme_cupertino_fields 2.5.3 copy "forme_cupertino_fields: ^2.5.3" to clipboard
forme_cupertino_fields: ^2.5.3 copied to clipboard

This package provides cupertino fields for forme package

example/main.dart

import 'package:flutter/cupertino.dart';

import 'page/cupertino_pages.dart';
import 'page/cupertino_slider.dart';
import 'page/page.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      title: 'FormCupertinoFields',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      child: ListView(
        children: [
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoTextFieldPage()));
              },
              child: Text('FormeCupertinoTextField')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoSliderPage()));
              },
              child: Text('FormeCupertinoSlider')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoPickerFieldPage()));
              },
              child: Text('FormeCupertinoPicker')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoTimerFieldPage()));
              },
              child: Text('FormeCupertinoTimerField')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoDateFieldPage()));
              },
              child: Text('FormeCupertinoDateField')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoSegmentedControlPage()));
              },
              child: Text('FormeCupertinoSegmentedControl')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) =>
                            CupertinoSlidingSegmentedControlPage()));
              },
              child: Text('FormeCupertinoSlidingSegmentedControl')),
          CupertinoButton(
              onPressed: () {
                Navigator.push(
                    context,
                    CupertinoPageRoute(
                        builder: (context) => CupertinoDemoPage()));
              },
              child: Text('FormeCupertinoDemoPage')),
        ],
      ),
    );
  }
}
0
likes
70
points
29
downloads

Publisher

verified publisherqyh.me

Weekly Downloads

This package provides cupertino fields for forme package

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, forme

More

Packages that depend on forme_cupertino_fields