fix linting error

This commit is contained in:
otsmr 2025-07-19 13:04:57 +02:00
parent ad02f6a314
commit e2be7aac5b
4 changed files with 38 additions and 5 deletions

30
.github/workflows/dev_github.yml vendored Normal file
View file

@ -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

View file

@ -25,11 +25,14 @@ jobs:
- name: Cloning sub-repos - name: Cloning sub-repos
run: git submodule update --init --recursive run: git submodule update --init --recursive
# - name: Check flutter code
# run: |
# flutter pub get
# flutter analyze
# flutter test
- name: Check flutter code - name: Check flutter code
run: | run: flutter pub get
flutter pub get
flutter analyze
flutter test
- name: Create key.properties file - name: Create key.properties file
run: | run: |

View file

@ -390,6 +390,7 @@ class _UserListItem extends State<UserListItem> {
return; return;
} }
} }
if (!mounted) return;
await Navigator.push( await Navigator.push(
context, context,
MaterialPageRoute(builder: (context) { MaterialPageRoute(builder: (context) {

View file

@ -1,7 +1,6 @@
name: twonly name: twonly
description: "twonly, a privacy-friendly way to connect with friends through secure, spontaneous image sharing." description: "twonly, a privacy-friendly way to connect with friends through secure, spontaneous image sharing."
# Prevent accidental publishing to pub.dev.
publish_to: 'none' publish_to: 'none'
version: 0.0.58+58 version: 0.0.58+58