-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
549 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Run Test Cases | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
check_up_to_date: | ||
name: Checkout Repository | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all history so we can compare | ||
|
||
- name: Fetch all branches | ||
run: git fetch origin | ||
|
||
- name: Check if branch is up-to-date with master | ||
run: | | ||
# Compare the current branch with the master branch | ||
if git merge-base --is-ancestor origin/master HEAD; then | ||
echo "The current branch is up-to-date with master." | ||
else | ||
echo "The current branch is not up-to-date with master." | ||
exit 1 | ||
fi | ||
setup_and_test: | ||
name: Setup Flutter and Run Test Cases | ||
runs-on: ubuntu-latest | ||
needs: check_up_to_date | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Flutter SDK | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: 3.24.x | ||
|
||
- name: Run Flutter doctor | ||
run: flutter doctor -v | ||
|
||
- name: Run Flutter Analyzer (Lint) | ||
run: flutter analyze | ||
|
||
- name: Run Flutter Tests | ||
run: flutter test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# get_time_ago | ||
|
||
A Flutter package to convert and format `DateTime` object into `get_time_ago` format to get | ||
String like `10 seconds ago`, `a minute ago`, `7 hours ago`, etc. | ||
A Dart package that converts and formats `DateTime` objects into human-readable 'time ago' strings, such as '20 seconds ago', 'a minute ago', or '7 hours ago'. This package provides an easy way to display relative time differences in your Flutter or Dart applications. It supports various time units (seconds, minutes, hours, days, etc.) and automatically adjusts the format based on how recent the event occurred. Ideal for displaying timestamps in news feeds, social media posts, or chat messages. | ||
|
||
[![pub package](https://img.shields.io/pub/v/get_time_ago.svg?label=Version)][pub] | ||
[![Stars](https://img.shields.io/github/stars/nixrajput/get-time-ago?label=Stars)][repo] | ||
|
@@ -35,13 +34,13 @@ String like `10 seconds ago`, `a minute ago`, `7 hours ago`, etc. | |
|
||
## Demo | ||
|
||
[View Demo](https://nixrajput.github.io/get-time-ago) | ||
### [Click here to experience the demo in a Web App](https://nixrajput.github.io/get-time-ago) | ||
|
||
## Installation | ||
|
||
Add `get_time_ago` as a dependency in your pubspec.yaml file. | ||
Add `get_time_ago` as a dependency in your `pubspec.yaml` file. | ||
|
||
```dart | ||
```yaml | ||
dependencies: | ||
get_time_ago: ^latest_version | ||
``` | ||
|
@@ -138,39 +137,6 @@ Overriding `en` Locale Messages with Custom Messages | |
GetTimeAgo.setCustomLocaleMessages('en', CustomMessages()); | ||
``` | ||
|
||
## Contributors | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="top" width="14.28%"><a href="https://nixrajput.vercel.app"><img src="https://avatars.githubusercontent.com/u/10887215?s=100&v=4" width="100px;" alt="Nikhil Rajput"/><br /><sub><b>Nikhil Rajput</b></sub></a><br /><a href="#question-nixrajput" title="Answering Questions">💬</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=nixrajput" title="Documentation">📖</a> <a href="#maintenance-nixrajput" title="Maintenance">🚧</a> <a href="#infra-nixrajput" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Anixrajput" title="Reviewed Pull Requests">👀</a> <a href="#talk-nixrajput" title="Talks">📢</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Mejans"><img src="https://avatars.githubusercontent.com/u/61360811?s=100&v=4" width="100px;" alt="Mejans"/><br /><sub><b>Mejans</b></sub></a><br /> <a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=Mejans" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3AMejans" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/msalman2890"><img src="https://avatars.githubusercontent.com/u/64697477?s=100&v=4" width="100px;" alt="Muhammad Salman Bediya"/><br /><sub><b>Muhammad Salman Bediya</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=msalman2890" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Amsalman2890" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/fluxion8"><img src="https://avatars.githubusercontent.com/u/67543117?s=100&v=4" width="100px;" alt="fluxion8"/><br /><sub><b>fluxion8</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=fluxion8" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Afluxion8" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PascalOtto"><img src="https://avatars.githubusercontent.com/u/43848718?s=100&v=4" width="100px;" alt="Pascal Otto"/><br /><sub><b>Pascal Otto</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=PascalOtto" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3APascalOtto" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/melodysdreamj"><img src="https://avatars.githubusercontent.com/u/21379657?s=100&v=4" width="100px;" alt="june lee"/><br /><sub><b>june lee</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=melodysdreamj" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Amelodysdreamj" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ywake"><img src="https://avatars.githubusercontent.com/u/59673834?s=100&v=4" width="100px;" alt="ywake"/><br /><sub><b>ywake</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=ywake" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Aywake" title="Reviewed Pull Requests">👀</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kidozh"><img src="https://avatars.githubusercontent.com/u/11661760?s=100&v=4" width="100px;" alt="Jiduo Zhang"/><br /><sub><b>Jiduo Zhang</b></sub></a><br /> <a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=kidozh" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Akidozh" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/silviuilas"><img src="https://avatars.githubusercontent.com/u/56910806?s=100&v=4" width="100px;" alt="silviuilas"/><br /><sub><b>silviuilas</b></sub></a><br /> <a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=silviuilas" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Asilviuilas" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Rexios80"><img src="https://avatars.githubusercontent.com/u/7896519?s=100&v=4" width="100px;" alt="Rexios"/><br /><sub><b>Rexios</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=Rexios80" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3ARexios80" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/minhdanh"><img src="https://avatars.githubusercontent.com/u/4865412?s=100&v=4" width="100px;" alt="Minh-Danh"/><br /><sub><b>Minh-Danh</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=minhdanh" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Aminhdanh" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/harloom"><img src="https://avatars.githubusercontent.com/u/28688707?s=100&v=4" width="100px;" alt="Ilham solehudin"/><br /><sub><b>Ilham solehudin</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=harloom" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3Aharloom" title="Reviewed Pull Requests">👀</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/WingCH"><img src="https://avatars.githubusercontent.com/u/19588517?s=100&v=4" width="100px;" alt="WingCH"/><br /><sub><b>WingCH</b></sub></a><br /><a href="https://github.com/nixrajput/flutter_carousel_widget/commits?author=WingCH" title="Documentation">📖</a> <a href="https://github.com/nixrajput/flutter_carousel_widget/pulls?q=is%3Apr+reviewed-by%3AWingCH" title="Reviewed Pull Requests">👀</a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
|
||
## Contributing | ||
|
||
If you would like to contribute to this project, feel free to fork the repository, make your | ||
|
@@ -183,24 +149,26 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file | |
|
||
## Sponsor Me | ||
|
||
- By sponsoring my efforts, you're not merely contributing to the development of my projects; you're | ||
investing in its growth and sustainability. | ||
- Your support empowers me to dedicate more time and resources to improving the project's features, | ||
addressing issues, and ensuring its continued relevance in the rapidly evolving landscape of | ||
technology. | ||
- Your sponsorship directly fuels innovation, fosters a vibrant community, and helps maintain the | ||
project's high standards of quality. Together, we can shape the future of the projects and make a | ||
lasting impact in the open-source community. | ||
- Thank you for considering sponsoring my work! | ||
By sponsoring my efforts, you're not merely contributing to the development of my projects; you're investing in its growth and sustainability. | ||
|
||
Your support empowers me to dedicate more time and resources to improving the project's features, addressing issues, and ensuring its continued relevance in the rapidly evolving landscape of technology. | ||
|
||
Your sponsorship directly fuels innovation, fosters a vibrant community, and helps maintain the project's high standards of quality. Together, we can shape the future of the projects and make a lasting impact in the open-source community. | ||
|
||
Thank you for considering sponsoring my work! | ||
|
||
[![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/nixrajput) | ||
|
||
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/nixrajput) | ||
|
||
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/nixrajput) | ||
|
||
## Connect With Me | ||
|
||
[![GitHub: nixrajput](https://img.shields.io/badge/nixrajput-EFF7F6?logo=GitHub&logoColor=333&link=https://www.github.com/nixrajput)][github] | ||
[![Linkedin: nixrajput](https://img.shields.io/badge/nixrajput-EFF7F6?logo=LinkedIn&logoColor=blue&link=https://www.linkedin.com/in/nixrajput)][linkedin] | ||
[![Instagram: nixrajput](https://img.shields.io/badge/nixrajput-EFF7F6?logo=Instagram&link=https://www.instagram.com/nixrajput)][instagram] | ||
[![Twitter: nixrajput07](https://img.shields.io/badge/nixrajput-EFF7F6?logo=X&logoColor=333&link=https://x.com/nixrajput)][twitter] | ||
[![Twitter: nixrajput07](https://img.shields.io/badge/nixrajput07-EFF7F6?logo=X&logoColor=333&link=https://x.com/nixrajput07)][twitter] | ||
[![Telegram: nixrajput](https://img.shields.io/badge/nixrajput-EFF7F6?logo=Telegram&link=https://telegram.me/nixrajput)][telegram] | ||
[![Gmail: [email protected]](https://img.shields.io/badge/[email protected]?logo=Gmail&link=mailto:[email protected])][gmail] | ||
|
||
|
Oops, something went wrong.