Skip to content

Commit

Permalink
Added more duration convenience methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shinayser committed Feb 12, 2019
1 parent 91965d1 commit 8cd1148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'dart:math';
import 'package:flutter/material.dart';

Duration millis(int millis) => Duration(milliseconds: millis);
Duration seconds(int seconds) => Duration(seconds: seconds);
Duration minutes(int minutes) => Duration(minutes: minutes);

TargetPlatform currentPlatform(BuildContext context) => Theme.of(context).platform;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shinayser_essentials_flutter
description: A new Flutter project.
version: 1.0.2
version: 1.1.0
author:
homepage:

Expand Down

0 comments on commit 8cd1148

Please sign in to comment.