mini_calendar 0.2.1 copy "mini_calendar: ^0.2.1" to clipboard
mini_calendar: ^0.2.1 copied to clipboard

outdated

Date component developed with Flutter, plans to support display, swipe left and right, add date mark, radio, display week, etc.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'page/calendar_customize.dart';
import 'page/calendar_view.dart';
import 'page/month_page_view_demo.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'mini calendar',
      home: new HomeWidget(),
    );
  }
}

class HomeWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('mini calendar'),
        centerTitle: true,
      ),
      body: ListView(
        children: <Widget>[
          _buildItem(context, '显示日历', CalendarViewPage()),
          _buildItem(context, '自定义日历示例', CalendarCustomizePage()),
          Divider(),
          _buildItem(context, '滑动日历', MonthPageViewDemo()),
        ],
      ),
    );
  }

  Widget _buildItem(BuildContext context, String title, Widget page) {
    return ListTile(
      title: Text(title ?? ''),
      onTap: () => Navigator.push(context, MaterialPageRoute(builder: (ctx) => page)),
    );
  }
}
3
likes
0
pub points
54%
popularity

Publisher

unverified uploader

Date component developed with Flutter, plans to support display, swipe left and right, add date mark, radio, display week, etc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on mini_calendar