mini_calendar 0.1.0 copy "mini_calendar: ^0.1.0" to clipboard
mini_calendar: ^0.1.0 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 'dart:async';

import 'calendar_view.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>[
          RaisedButton(
            onPressed: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                    builder: (context) => new CalendarViewPage()),
              );
            },
            child: new Text('显示日历'),
          )
        ],
      ),
    );
  }

  void pushPage(BuildContext context, Widget page) {
    Navigator.push(context, MaterialPageRoute(builder: (ctx) {
      return 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