mirror of
https://github.com/venera-app/venera.git
synced 2025-12-16 15:11:14 +00:00
Compare commits
2 Commits
master
...
feat/comme
| Author | SHA1 | Date | |
|---|---|---|---|
| c50d85a6a1 | |||
| 38b5947c0a |
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -84,7 +84,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: rm -rf /opt/hostedtoolcache
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export "widget_utils.dart";
|
|||||||
export "context.dart";
|
export "context.dart";
|
||||||
|
|
||||||
class _App {
|
class _App {
|
||||||
final version = "1.6.1";
|
final version = "1.6.0";
|
||||||
|
|
||||||
bool get isAndroid => Platform.isAndroid;
|
bool get isAndroid => Platform.isAndroid;
|
||||||
|
|
||||||
|
|||||||
@@ -258,41 +258,29 @@ class _LocalComicsPageState extends State<LocalComicsPage> {
|
|||||||
else if (searchMode)
|
else if (searchMode)
|
||||||
SliverAppbar(
|
SliverAppbar(
|
||||||
leading: Tooltip(
|
leading: Tooltip(
|
||||||
message: multiSelectMode ? "Cancel".tl : "Cancel".tl,
|
message: "Cancel".tl,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: multiSelectMode
|
icon: const Icon(Icons.close),
|
||||||
? const Icon(Icons.close)
|
|
||||||
: const Icon(Icons.close),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (multiSelectMode) {
|
setState(() {
|
||||||
setState(() {
|
searchMode = false;
|
||||||
multiSelectMode = false;
|
keyword = "";
|
||||||
selectedComics.clear();
|
update();
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
setState(() {
|
|
||||||
searchMode = false;
|
|
||||||
keyword = "";
|
|
||||||
update();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
title: multiSelectMode
|
title: TextField(
|
||||||
? Text(selectedComics.length.toString())
|
autofocus: true,
|
||||||
: TextField(
|
decoration: InputDecoration(
|
||||||
autofocus: true,
|
hintText: "Search".tl,
|
||||||
decoration: InputDecoration(
|
border: InputBorder.none,
|
||||||
hintText: "Search".tl,
|
),
|
||||||
border: InputBorder.none,
|
onChanged: (v) {
|
||||||
),
|
keyword = v;
|
||||||
onChanged: (v) {
|
update();
|
||||||
keyword = v;
|
},
|
||||||
update();
|
),
|
||||||
},
|
|
||||||
),
|
|
||||||
actions: multiSelectMode ? selectActions : null,
|
|
||||||
),
|
),
|
||||||
SliverGridComics(
|
SliverGridComics(
|
||||||
comics: comics,
|
comics: comics,
|
||||||
@@ -356,7 +344,6 @@ class _LocalComicsPageState extends State<LocalComicsPage> {
|
|||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: !multiSelectMode && !searchMode,
|
canPop: !multiSelectMode && !searchMode,
|
||||||
onPopInvokedWithResult: (didPop, result) {
|
onPopInvokedWithResult: (didPop, result) {
|
||||||
if (didPop) return;
|
|
||||||
if (multiSelectMode) {
|
if (multiSelectMode) {
|
||||||
setState(() {
|
setState(() {
|
||||||
multiSelectMode = false;
|
multiSelectMode = false;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: venera
|
|||||||
description: "A comic app."
|
description: "A comic app."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.6.1+161
|
version: 1.6.0+160
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.8.0 <4.0.0'
|
sdk: '>=3.8.0 <4.0.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user