timeline_list 0.1.1 copy "timeline_list: ^0.1.1" to clipboard
timeline_list: ^0.1.1 copied to clipboard

Flutter widget for creating highly customizable timelines. Perfect for onboarding flows, progress tracking, and interactive history displays.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:timeline_list/timeline_list.dart';
import 'iphone_releases.dart';
import 'onboarding.dart';

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

class SimpleTimeline extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Simple timeline")),
        body: Timeline(
          children: [
            Marker(child: Text("Step 1")),
            Marker(child: Text("Step 2")),
            Marker(child: Text("Step 3"))
          ],
        ));
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
      initialRoute: '/',
      routes: {
        '/': (context) => ExampleDirectory(),
        '/iphone-releases': (context) => IPhoneReleaseTimelinePage(),
        '/onboarding': (context) => OnboardingPage(),
        '/simple': (context) => SimpleTimeline(),
      },
    );
  }
}

class ExampleDirectory extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Timeline Examples")),
      body: ListView(children: [
        ListTile(
            title: Text("Timeline with icons and different alignment options"),
            onTap: () => Navigator.pushNamed(context, '/iphone-releases')),
        ListTile(
            title: Text("Onboarding example"),
            onTap: () => Navigator.pushNamed(context, '/onboarding')),
        ListTile(
            title: Text("Simple timeline"),
            onTap: () => Navigator.pushNamed(context, '/simple'))
      ]),
    );
  }
}
copied to clipboard
190
likes
160
points
2.43k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.11 - 2025.03.26

Flutter widget for creating highly customizable timelines. Perfect for onboarding flows, progress tracking, and interactive history displays.

Repository (GitHub)

Topics

#timeline #onboarding #progress #widget #flutter

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on timeline_list