dynamic_timeline 0.1.2 copy "dynamic_timeline: ^0.1.2" to clipboard
dynamic_timeline: ^0.1.2 copied to clipboard

A widget to create daily timelines, timetables, gantt charts* and more.

example/lib/main.dart

import 'package:dynamic_timeline_example/pages/pages.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => const DailyTimeline(),
                ),
              ),
              child: const Text('Daily timeline'),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => const WeeklyTimetable(),
                ),
              ),
              child: const Text('Weekly timeline'),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => const GanttChart(),
                ),
              ),
              child: const Text('Gantt chart'),
            ),
          ],
        ),
      ),
    );
  }
}
39
likes
130
pub points
84%
popularity

Publisher

unverified uploader

A widget to create daily timelines, timetables, gantt charts* and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dynamic_timeline