rrule_generator 0.9.0 copy "rrule_generator: ^0.9.0" to clipboard
rrule_generator: ^0.9.0 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:flutter_localizations/flutter_localizations.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',
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      home: Scaffold(
        appBar: AppBar(),
        body: Builder(builder: (context) {
          return Center(
            child: ElevatedButton(
              child: const Text('Open'),
              onPressed: () {
                showDialog(
                  context: context,
                  builder: (BuildContext context) => AlertDialog(
                    content: SingleChildScrollView(
                      child: RRuleGenerator(
                        config: RRuleGeneratorConfig(),
                        initialRRule:
                            'RRULE:FREQ=MONTHLY;BYMONTHDAY=-1;INTERVAL=1;UNTIL=20231211;EXDATE=20240322T000000',
                        textDelegate: const EnglishRRuleTextDelegate(),
                        withExcludeDates: true,
                        onChange: print,
                      ),
                    ),
                  ),
                );
              },
            ),
          );
        }),
      ),
    );
  }
}
10
likes
130
points
552
downloads

Publisher

verified publisherjelter.net

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (license)

Dependencies

flutter, intl

More

Packages that depend on rrule_generator