Skip to content

xelaj/flutter_material_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐Ÿ•— Material Clock ๐Ÿ•š

help wanted Pub Version license MIT chat telegram unstable

english ั€ัƒััะบะธะน

Chic and awesome watch for your application!

preview

How to install

Open pubspec.yaml and add to dependency name of this package:

dependencies:
  material_clock: any

After this, run command:

$ flutter pub get

Voila! Installation is done!

How to use

Code examples are here

Basically, you jest need to create new widget, and set some parameters:

import 'package:material_clock/material_clock.dart' as materialClock;

materialClock.Clock(
  theme: Brightness.dark,                  // Theme of clocks. By default it is set to `Brightness.light`
                                           // for supporting dark and light modes of iOS and Android.
  backgroundStyle: PaintingStyle.stroke,   // Background style of widget. It can be only `PaintingStyle.fill` or `PanintingStyle.stroke`
  secondHandColor: Colors.red,             // Color of your second hand. By default it is `Colors.redAccent`
  alignment = Alignment.center,            // Aligment of widget. Could be useful if parameter `size` is setted.
  live: true,                              // If true, than clocks will update every second. If false, than hands position will be fixed.
  size: 400.0,                             // Size of your widget. By default it is `double.infinty`.
  time: DateTime.now(),                    // Which time you want to render. By default it is current time.
);

Contributing

Please read contributing guide if you want to help. And the help is very necessary!

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Amazing material clock for any of your app!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages