Skip to content

Commit 94af008

Browse files
committed
Initial commit
0 parents  commit 94af008

File tree

8 files changed

+206
-0
lines changed

8 files changed

+206
-0
lines changed

.gitignore

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Miscellaneous
2+
*.class
3+
*.lock
4+
*.log
5+
*.pyc
6+
*.swp
7+
.DS_Store
8+
.atom/
9+
.buildlog/
10+
.history
11+
.svn/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# Visual Studio Code related
20+
.classpath
21+
.project
22+
.settings/
23+
.vscode/
24+
25+
# Flutter repo-specific
26+
/bin/cache/
27+
/bin/internal/bootstrap.bat
28+
/bin/internal/bootstrap.sh
29+
/bin/mingit/
30+
/dev/benchmarks/mega_gallery/
31+
/dev/bots/.recipe_deps
32+
/dev/bots/android_tools/
33+
/dev/devicelab/ABresults*.json
34+
/dev/docs/doc/
35+
/dev/docs/flutter.docs.zip
36+
/dev/docs/lib/
37+
/dev/docs/pubspec.yaml
38+
/dev/integration_tests/**/xcuserdata
39+
/dev/integration_tests/**/Pods
40+
/packages/flutter/coverage/
41+
version
42+
analysis_benchmark.json
43+
44+
# packages file containing multi-root paths
45+
.packages.generated
46+
47+
# Flutter/Dart/Pub related
48+
**/doc/api/
49+
.dart_tool/
50+
.flutter-plugins
51+
.flutter-plugins-dependencies
52+
**/generated_plugin_registrant.dart
53+
.packages
54+
.pub-cache/
55+
.pub/
56+
build/
57+
flutter_*.png
58+
linked_*.ds
59+
unlinked.ds
60+
unlinked_spec.ds
61+
62+
# Android related
63+
**/android/**/gradle-wrapper.jar
64+
**/android/.gradle
65+
**/android/captures/
66+
**/android/gradlew
67+
**/android/gradlew.bat
68+
**/android/local.properties
69+
**/android/**/GeneratedPluginRegistrant.java
70+
**/android/key.properties
71+
*.jks
72+
73+
# iOS/XCode related
74+
**/ios/**/*.mode1v3
75+
**/ios/**/*.mode2v3
76+
**/ios/**/*.moved-aside
77+
**/ios/**/*.pbxuser
78+
**/ios/**/*.perspectivev3
79+
**/ios/**/*sync/
80+
**/ios/**/.sconsign.dblite
81+
**/ios/**/.tags*
82+
**/ios/**/.vagrant/
83+
**/ios/**/DerivedData/
84+
**/ios/**/Icon?
85+
**/ios/**/Pods/
86+
**/ios/**/.symlinks/
87+
**/ios/**/profile
88+
**/ios/**/xcuserdata
89+
**/ios/.generated/
90+
**/ios/Flutter/.last_build_id
91+
**/ios/Flutter/App.framework
92+
**/ios/Flutter/Flutter.framework
93+
**/ios/Flutter/Flutter.podspec
94+
**/ios/Flutter/Generated.xcconfig
95+
**/ios/Flutter/app.flx
96+
**/ios/Flutter/app.zip
97+
**/ios/Flutter/flutter_assets/
98+
**/ios/Flutter/flutter_export_environment.sh
99+
**/ios/ServiceDefinitions.json
100+
**/ios/Runner/GeneratedPluginRegistrant.*
101+
102+
# macOS
103+
**/macos/Flutter/GeneratedPluginRegistrant.swift
104+
**/macos/Flutter/Flutter-Debug.xcconfig
105+
**/macos/Flutter/Flutter-Release.xcconfig
106+
**/macos/Flutter/Flutter-Profile.xcconfig
107+
108+
# Coverage
109+
coverage/
110+
111+
# Symbols
112+
app.*.symbols
113+
114+
# Exceptions to above rules.
115+
!**/ios/**/default.mode1v3
116+
!**/ios/**/default.mode2v3
117+
!**/ios/**/default.pbxuser
118+
!**/ios/**/default.perspectivev3
119+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
120+
!/dev/ci/**/Gemfile.lock

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 8874f21e79d7ec66d0457c7ab338348e31b17f1d
8+
channel: stable
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [0.0.1] - TODO: Add release date.
2+
3+
* TODO: Describe initial release.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Chulwoo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# timelines
2+
3+
A new Flutter package.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Dart
8+
[package](https://flutter.dev/developing-packages/),
9+
a library module containing code that can be shared easily across
10+
multiple Flutter or Dart projects.
11+
12+
For help getting started with Flutter, view our
13+
[online documentation](https://flutter.dev/docs), which offers tutorials,
14+
samples, guidance on mobile development, and a full API reference.

lib/timelines.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
library timelines;
2+
3+
/// A Calculator.
4+
class Calculator {
5+
/// Returns [value] plus 1.
6+
int addOne(int value) => value + 1;
7+
}

pubspec.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: timelines
2+
description: A simple timeline widget.
3+
version: 0.0.1
4+
homepage: https://chulwoo.dev
5+
6+
environment:
7+
sdk: ">=2.7.0 <3.0.0"
8+
flutter: ">=1.17.0"
9+
10+
dependencies:
11+
flutter:
12+
sdk: flutter
13+
14+
dev_dependencies:
15+
flutter_test:
16+
sdk: flutter
17+
18+
flutter:

test/timelines_test.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import 'package:flutter_test/flutter_test.dart';
2+
3+
import 'package:timelines/timelines.dart';
4+
5+
void main() {
6+
test('adds one to input values', () {
7+
final calculator = Calculator();
8+
expect(calculator.addOne(2), 3);
9+
expect(calculator.addOne(-7), -6);
10+
expect(calculator.addOne(0), 1);
11+
expect(() => calculator.addOne(null), throwsNoSuchMethodError);
12+
});
13+
}

0 commit comments

Comments
 (0)