weekly_timetable 0.2.2 copy "weekly_timetable: ^0.2.2" to clipboard
weekly_timetable: ^0.2.2 copied to clipboard

Timetable widget for flutter

example/lib/main.dart

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'),
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: WeeklyTimeTable(
//        cellColor: Color.fromRGBO(0, 184, 255, 1.0),
//        cellSelectedColor: Color.fromRGBO(189, 0, 255, 1.0),
//        boarderColor: Color.fromRGBO(0,30,255, 1.0),
        locale: 'ko',
        onValueChanged: (Map<int, List<int>>selected) {
          print(selected);
        },
      ),
    );
  }
}
8
likes
20
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

Timetable widget for flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on weekly_timetable