v2.2.2macos_ui
Flutter 小部件和主題,實現當前的 macOS 設計語言。
一個顯示連續每天至少有一次提交的天數的工具。
v2.2.2Flutter 小部件和主題,實現當前的 macOS 設計語言。
類似於 cron 的時間基礎工作排程器。定期在固定時間或間隔執行任務。
用類型安全的 API 和豐富的錯誤報告來解析 pubspec.yaml 檔案的簡單套件。
v1.0.5Flutter 熱力圖日曆,靈感來自 GitHub 貢獻圖表,包含傳統模式 / 日曆模式。
^1.16.0^0.5.1^1.0.5^5.2.5{"sdk":"flutter"}^1.0.5^0.18.5+1^13.0.0^0.6.14^2.1.3^0.18.0^1.11.1^0.0.3^1.8.2^1.2.1^2.0.17^0.3.2^2.0.1{"sdk":"flutter"}^1.1.6以下為英文專案原文快照,最新內容請造訪 GitHub。
A tool that shows how many days there are uninterrupted commits
This is a second tool made from a starter project created by mason using macosui_tool_starter.
It scans all git repositories below the selected directory and reads the git log to collect all commits done in last 240 days. From this data a "heatmap" and the commit streak is created. The heatmap is a color coded calendar. The darker the green color the more changes were committed on that day. The streak is the number of consecutive days with at least one commit per day.
Create your own version if you have Flutter installed on macOS anyway.
git clone github.com/schilken/git_commit_streak
flutter pub get
flutter build macos
You find the built app here: git_commit_streak/build/macos/Build/Products/Release/GitCommitStreak
In the settings, you can activate reminders at a specified time, as notifications, and as iMessage. For example, I get a notification and an iMessage at 19h if I have not yet committed anything.
On a MacBook:
https://raw.githubusercontent.com/schilken/git_commit_streak/HEAD/assets_for_readme/GitCommitStreak-Notification.pngOn the iPhone:
https://raw.githubusercontent.com/schilken/git_commit_streak/HEAD/assets_for_readme/GitCommitStreak-iPhone_640.jpgOn a Apple Watch:
https://raw.githubusercontent.com/schilken/git_commit_streak/HEAD/assets_for_readme/GitCommitStreak-Apple_Watch.jpgCurrrently there is only a release build for [macOS] (https://github.com/schilken/git_commit_streak/releases/)
The cron package can only schedule the commit checks at the specified time, when the Mac is not powered off and the app is running in der background.
By default, a new Mac is–at least in Europe–configured to power down after some delay being in sleep mode (standy 1). I use this app to remind me at 19:00, when I haven't committed anything yet. And that shall work also when the MacBook is closed. With the pmset -c command, I switch off the auto-power-off only when the Mac is connected to the power grid. Use man pmsetto look up other options, for example -a.
$ sudo pmset -c standby 0
<enter root password>
$ pmset -g
System-wide power settings:
Currently in use:
standby 0
...
I generated a starter project using mason. If you want to create a similar tool you can generate a starter project like so:
Several ideas are taken from https://github.com/bizz84/complete-flutter-course, a great source for learning advanced Flutter created by Andrea Bizzotto (bizz84). Also, thanks to Reuben Turner (GroovinChip) for his great package at https://github.com/GroovinChip/macos_ui