Coder Social home page Coder Social logo

changjoo-park / flutter_weekly_timetable Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 78 KB

weekly timetable widget plugin for flutter

Home Page: https://pub.dev/packages/weekly_timetable

License: Other

Java 3.33% Swift 3.65% Objective-C 0.33% Dart 92.69%

flutter_weekly_timetable's Introduction

weekly_timetable

Customizable Weekly TimeTable widget for flutter. Compatible with Android & iOS.

Getting Started

Add dependency to pubspec.yaml

weekly_timetable:

Usage

import 'package:flutter/material.dart';
import 'package:weekly_timetable/weekly_timetable.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter TimeTable Plugin Example'),
      debugShowCheckedModeBanner: false
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  Map<int, List<int>> initialSchedule = {
    0: [],
    1: [],
    2: [],
    3: [],
    4: [],
    5: [],
    6: [],
  };

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: WeeklyTimeTable(initialSchedule),
    );
  }
}

Please see refer example.

Options

WeeklyTimeTable has some options for Cell colors and initial schedule

Type Name Description
Color cellColor cell color when not selected (default: Colors.white)
Color cellSelectedColor set color when cell selected (default: Colors.black)
Color borderColor grid line color (default: Colors.grey)
ValueChanged<Map<int, List>> onValueChanged trigger onValueChanged every user click.
String locale optional. en by default, ko, de, ja
bool draggable TBD
Map<int, List> initialSchedule TBD

TBD

  • Horizontal Drag for select
  • Vertical Drag for select
  • Support Time Cell disable
  • Support Day disable

Contributors

flutter_weekly_timetable's People

Contributors

changjoo-park avatar shahhyash avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter_weekly_timetable's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.