From e2be7aac5b0c3a81e9a1d799ab5be58073a39699 Mon Sep 17 00:00:00 2001 From: otsmr Date: Sat, 19 Jul 2025 13:04:57 +0200 Subject: [PATCH] fix linting error --- .github/workflows/dev_github.yml | 30 +++++++++++++++++++++++++ .github/workflows/release_github.yml | 11 +++++---- lib/src/views/chats/chat_list.view.dart | 1 + pubspec.yaml | 1 - 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/dev_github.yml diff --git a/.github/workflows/dev_github.yml b/.github/workflows/dev_github.yml new file mode 100644 index 0000000..f5c82c2 --- /dev/null +++ b/.github/workflows/dev_github.yml @@ -0,0 +1,30 @@ +name: Publish on Github + +on: + workflow_dispatch: {} + push: + branches: + - dev + +jobs: + build_and_publish: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: Cloning sub-repos + run: git submodule update --init --recursive + + - name: Check flutter code + run: | + flutter pub get + flutter analyze + flutter test diff --git a/.github/workflows/release_github.yml b/.github/workflows/release_github.yml index b183d00..58c7ff7 100644 --- a/.github/workflows/release_github.yml +++ b/.github/workflows/release_github.yml @@ -25,11 +25,14 @@ jobs: - name: Cloning sub-repos run: git submodule update --init --recursive + # - name: Check flutter code + # run: | + # flutter pub get + # flutter analyze + # flutter test + - name: Check flutter code - run: | - flutter pub get - flutter analyze - flutter test + run: flutter pub get - name: Create key.properties file run: | diff --git a/lib/src/views/chats/chat_list.view.dart b/lib/src/views/chats/chat_list.view.dart index 353cc6a..c59d92a 100644 --- a/lib/src/views/chats/chat_list.view.dart +++ b/lib/src/views/chats/chat_list.view.dart @@ -390,6 +390,7 @@ class _UserListItem extends State { return; } } + if (!mounted) return; await Navigator.push( context, MaterialPageRoute(builder: (context) { diff --git a/pubspec.yaml b/pubspec.yaml index c4c43c4..dae96c7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,6 @@ name: twonly description: "twonly, a privacy-friendly way to connect with friends through secure, spontaneous image sharing." -# Prevent accidental publishing to pub.dev. publish_to: 'none' version: 0.0.58+58