Skip to content

Commit

Permalink
FIx description formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Nov 6, 2023
1 parent 41d96ff commit ed0f98f
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 151 deletions.
2 changes: 1 addition & 1 deletion FLUTTER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.16.0-0.3.pre
3.16.0-0.4.pre
2 changes: 1 addition & 1 deletion api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
meta: ^1.9.1
equatable: ^2.0.5
sqflite_common: ^2.4.5+1
sqflite_common: ^2.5.0+1
freezed_annotation: ^2.4.1
json_annotation: ^4.8.1
collection: ^1.17.2
Expand Down
18 changes: 9 additions & 9 deletions app/android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.839.0)
aws-sdk-core (3.185.1)
aws-partitions (1.845.0)
aws-sdk-core (3.186.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
Expand All @@ -21,7 +21,7 @@ GEM
aws-sdk-core (~> 3, >= 3.181.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.6)
aws-sigv4 (1.6.0)
aws-sigv4 (1.6.1)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.1.0)
Expand Down Expand Up @@ -109,7 +109,7 @@ GEM
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.51.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.1)
google-apis-core (0.11.2)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
Expand All @@ -122,19 +122,19 @@ GEM
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.19.0)
google-apis-core (>= 0.9.0, < 2.a)
google-apis-storage_v1 (0.29.0)
google-apis-core (>= 0.11.0, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.44.0)
google-cloud-storage (1.45.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.19.0)
google-apis-storage_v1 (~> 0.29.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
Expand All @@ -161,7 +161,7 @@ GEM
os (1.1.4)
plist (3.7.0)
public_suffix (5.0.3)
rake (13.0.6)
rake (13.1.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
Expand Down
6 changes: 3 additions & 3 deletions app/lib/pages/notes/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ class _NoteCardState extends State<NoteCard> {
final selection = _descriptionController.selection;
if (!selection.isValid) return;
final start = selection.baseOffset;
final lineStart = max(0, description.lastIndexOf("\n", start));
final lineStart = description.lastIndexOf("\n", start - 1);
description = switch (position) {
PastePositing.line => description.substring(0, lineStart) +
PastePositing.line => description.substring(0, lineStart + 1) +
text +
description.substring(lineStart),
description.substring(lineStart + 1),
PastePositing.selection => description.substring(0, start) +
text +
description.substring(selection.extentOffset),
Expand Down
30 changes: 15 additions & 15 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "903dd4ba13eae7cef64acc480e91bf54c3ddd23b5b90b639c170f3911e489620"
sha256: "4e42aacde3b993c5947467ab640882c56947d9d27342a5b6f2895b23956954a6"
url: "https://pub.dev"
source: hosted
version: "6.0.0"
version: "6.1.1"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -354,10 +354,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: ad76540d21c066228ee3f9d1dad64a9f7e46530e8bb7c85011a88bc1fd874bc5
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "3.0.1"
flutter_localizations:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -489,10 +489,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: e156bc1b2088eb5ece9351bccd48c3e1719a4858eacbd44e59162e98a68205d1
sha256: "5098760d7478aabfe682a462bf121d61bc5dbe5df5aac8dad733564a0aee33bc"
url: "https://pub.dev"
source: hosted
version: "12.0.1"
version: "12.1.0"
graphs:
dependency: transitive
description:
Expand Down Expand Up @@ -1008,18 +1008,18 @@ packages:
dependency: "direct main"
description:
name: sqflite_common
sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a"
sha256: "8ed044102f3135add97be8653662052838859f5400075ef227f8ad72ae320803"
url: "https://pub.dev"
source: hosted
version: "2.5.0"
version: "2.5.0+1"
sqflite_common_ffi:
dependency: "direct main"
description:
name: sqflite_common_ffi
sha256: "0d5cc1be2eb18400ac6701c31211d44164393aa75886093002ecdd947be04f93"
sha256: "198b40b4a7ba58cca18d7837d0246859b7b4c8b007d2902634fc26dec57fa3f1"
url: "https://pub.dev"
source: hosted
version: "2.3.0+2"
version: "2.3.0+3"
sqflite_common_ffi_web:
dependency: "direct main"
description:
Expand All @@ -1040,10 +1040,10 @@ packages:
dependency: "direct main"
description:
name: sqlite3_flutter_libs
sha256: "11a41f380fbcbda5bbba03ddcdbe0545e46094ab043783c46c70e8335831df03"
sha256: "3e3583b77cf888a68eae2e49ee4f025f66b86623ef0d83c297c8d903daa14871"
url: "https://pub.dev"
source: hosted
version: "0.5.17"
version: "0.5.18"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -1224,10 +1224,10 @@ packages:
dependency: transitive
description:
name: web
sha256: "14f1f70c51119012600c5f1f60ca68efda5a9b6077748163c6af2893ec5df8fc"
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.2.1-beta"
version: "0.3.0"
web_socket_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -1285,5 +1285,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.0-157.0.dev <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.13.0"
12 changes: 6 additions & 6 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ dependencies:
url: https://github.com/CodeDoctorDE/phosphor-flutter
ref: f370dd2c25d3ea51ffb8f1c7c183bc9f33889c82
path: ^1.8.3
go_router: ^12.0.1
go_router: ^12.1.0
flex_color_scheme: ^7.3.1
flutter_bloc: ^8.1.3
freezed_annotation: ^2.4.1
json_annotation: ^4.8.1
shared_preferences: ^2.2.1
file_picker: ^6.0.0
file_picker: ^6.1.1
collection: ^1.17.1
infinite_scroll_pagination: ^4.0.0
window_manager: ^0.3.5
package_info_plus: ^4.1.0
# Database
sqflite_common: ^2.5.0
sqflite_common: ^2.5.0+1
sqflite: ^2.3.0
sqflite_common_ffi: ^2.3.0+2
sqflite_common_ffi: ^2.3.0+3
sqflite_common_ffi_web: ^0.4.0
sqlite3_flutter_libs: ^0.5.16
sqlite3_flutter_libs: ^0.5.18
sqlite3: ^2.1.0
dynamic_color: ^1.6.6
simple_icons: ^7.10.0
Expand All @@ -75,7 +75,7 @@ dependencies:
lib5: ^0.1.0
dev_dependencies:
build_runner: ^2.4.6
flutter_lints: ^3.0.0
flutter_lints: ^3.0.1
flutter_test:
sdk: flutter
freezed: ^2.4.2
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^18.2.0",
"react-animation-on-scroll": "^5.1.0",
"react-dom": "^18.2.0",
"ua-parser-js": "^1.0.36"
"ua-parser-js": "^1.0.37"
},
"browserslist": {
"production": [
Expand All @@ -42,7 +42,7 @@
"last 1 safari version"
]
},
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@8.10.2",
"devDependencies": {
"markdownlint-cli2": "^0.10.0",
"typescript": "^5.2.2"
Expand Down
Loading

0 comments on commit ed0f98f

Please sign in to comment.