rrule_generator 0.3.2 copy "rrule_generator: ^0.3.2" to clipboard
rrule_generator: ^0.3.2 copied to clipboard

RRuleGenerator is a widget for generating recurrence rules, such as described in the iCalendar RFC

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rrule_generator/rrule_generator.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(),
        body: Builder(builder: (context) {
          return Center(
            child: ElevatedButton(
              child: Text('Open'),
              onPressed: () {
                showDialog(
                  context: context,
                  builder: (BuildContext context) => AlertDialog(
                    content: RRuleGenerator(
                      initialRRule:
                          'FREQ=MONTHLY;INTERVAL=1;BYDAY=TU;BYSETPOS=1;UNTIL=2021128',
                      textDelegate: const EnglishRRuleTextDelegate(),
                      onChange: print,
                    ),
                  ),
                );
              },
            ),
          );
        }),
      ),
    );
  }
}
10
likes
0
pub points
78%
popularity

Publisher

verified publisherjelter.net

RRuleGenerator is a widget for generating recurrence rules, such as described in the iCalendar RFC

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on rrule_generator