horizontal_indicator 0.0.1 horizontal_indicator: ^0.0.1 copied to clipboard
Horizontal indicator that let you scroll horizontally and add anything.
horizontal_indicator #
This package provides you horizontal date indicator.
Implementation:
Add horizontal_indicator: <version>
to your pubspect.yaml file.
Then use DateIndicator()
as a child of your any widget.
That's it.
TODO: - Support anyother format like date. - Add Only date indicator option and page option.
Note that this package uses intl: ^0.16.0
for supporting formated date.
Example: #
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter SO answers sample snippet',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: DateIndicatorPage(),
);
}
}
class DateIndicatorPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
children: <Widget>[
DateIndicator(),
Expanded(
child: Container(),
),
],
),
),
);
}
}
Screenshots:
Getting Started #
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.