g2x_week_calendar 0.1.3

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 53

g2x week calendar #

Customizable week calendar

image #

G2xSimpleWeekCalendar customizable #

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

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

dateCallback: 
    type: typedef void
    Function that returns the date

defaultTextStyle: 
    type: TextStyle
    default value flutter

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

selectedBackgroundDecoration:
    type: BoxDecoration
    default value flutter

backgroundDecoration: 
    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.

example/lib/main.dart

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.
  @override
  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;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  //data returned from the component
  DateTime dateCallback;
  @override
  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:


dependencies:
  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';
  
Version Uploaded Documentation Archive
0.1.3 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.1.3 Download g2x_week_calendar 0.1.3 archive
0.1.2 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.1.2 Download g2x_week_calendar 0.1.2 archive
0.1.1 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.1.1 Download g2x_week_calendar 0.1.1 archive
0.1.0 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.1.0 Download g2x_week_calendar 0.1.0 archive
0.0.9 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.9 Download g2x_week_calendar 0.0.9 archive
0.0.8 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.8 Download g2x_week_calendar 0.0.8 archive
0.0.7 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.7 Download g2x_week_calendar 0.0.7 archive
0.0.6 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.6 Download g2x_week_calendar 0.0.6 archive
0.0.5 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.5 Download g2x_week_calendar 0.0.5 archive
0.0.4 Dec 15, 2018 Go to the documentation of g2x_week_calendar 0.0.4 Download g2x_week_calendar 0.0.4 archive

All 13 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
9
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
95
Overall:
Weighted score of the above. [more]
53
Learn more about scoring.

We analyzed this package on Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

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 issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

Dependencies

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
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test