g2x_week_calendar 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 72

g2x week calendar #

Customizable week calendar

image #

G2xSimpleWeekCalendar customizable #

    Abbreviation of the days of the week, beginning with Sunday
        type: List<string>
        default value ["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"]

    Format of the date displayed in the component header
        type: String
        default value "yyyy/MM/dd"

    type: typedef void
    Function that returns the date

    type: TextStyle
    default value flutter

    type: TextStyle
    default value TextStyle(color: Colors.red),

    type: BoxDecoration
    default value flutter

    type: BoxDecoration
    default value flutter

MyDateTime #

class that contains the methods used on component

[0.1.3] - Update documentation.

  • Update documentation.

[0.1.2] - Update license.

  • Update license.

[0.1.1] - Add license and documentation.

  • Add license BSD and documentation MyDateTime.

[0.1.0] - publication for use.

  • Update to stable and documented version.

[0.0.2]..[0.0.9] - Documentation.

  • Created and updated documentation.

[0.0.1] - TODO: Add release date

  • Create component.


import 'package:flutter/material.dart';
import 'package:g2x_week_calendar/g2x_simple_week_calendar.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      home: MyHomePage(title: 'Week day'),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  //data returned from the component
  DateTime dateCallback;
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),

        simple example of use: G2xSimpleWeekCalendar

      body: G2xSimpleWeekCalendar(DateTime.now(), dateCallback: (date) => dateCallback)

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  g2x_week_calendar: ^0.1.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:g2x_week_calendar/g2x_simple_week_calendar.dart';
import 'package:g2x_week_calendar/util.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Format lib/g2x_simple_week_calendar.dart.

Run flutter format to format lib/g2x_simple_week_calendar.dart.

Format lib/util.dart.

Run flutter format to format lib/util.dart.

Maintenance suggestions

Package is getting outdated. (-9.86 points)

The package was last published 57 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies