Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.38.1"

- name: Install dependencies
run: flutter pub get
Expand Down Expand Up @@ -69,7 +68,6 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.38.1"

- name: Install Linux dependencies
if: matrix.platform == 'Linux'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.38.1"

# 仅在编译 Linux 时安装必要的系统库
- name: Install Linux dependencies
Expand Down
5 changes: 2 additions & 3 deletions lib/pages/sticker/sticker_page_layers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,13 @@ extension _StickerPageLayers on _StickerPageState {
return;
}

final adjustedNewIndex = newIndex > oldIndex ? newIndex - 1 : newIndex;
if (oldIndex == adjustedNewIndex) {
if (oldIndex == newIndex) {
return;
}

_update(() {
final layer = _layers.removeAt(oldIndex);
_layers.insert(adjustedNewIndex, layer);
_layers.insert(newIndex, layer);
_contextController.text = _currentLayer.content;
});
_createSticker();
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/sticker/sticker_page_sections.dart
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ extension _StickerPageSections on _StickerPageState {
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
buildDefaultDragHandles: false,
itemCount: _layers.length,
onReorder: _reorderLayer,
onReorderItem: _reorderLayer,
itemBuilder: (context, index) {
final layer = _layers[index];
final isSelected = _currentLayerId == layer.id;
Expand Down
1 change: 1 addition & 0 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")

# Use Unicode for all projects.
add_definitions(-DUNICODE -D_UNICODE)
add_definitions(-D_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS)

# Compilation settings that should be applied to most targets.
#
Expand Down
Loading