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
3 changes: 3 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# morphnext examples

The showcase requires Flutter >=3.47.0 and Dart >=3.13.0 because of its
dependencies. The morphnext package retains its own lower SDK requirements.

`example.dart` is the compact package example shown on pub.dev:

```console
Expand Down
6 changes: 2 additions & 4 deletions example/lib/site_chrome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ class _MorphnextTopBarState extends State<MorphnextTopBar> {
}

static Future<_PackageStats> _loadPackageStats() async {
final values = await Future.wait([
_loadGithubStars(),
_loadPubLikes(),
]).timeout(const Duration(seconds: 6));
final values = await Future.wait([_loadGithubStars(), _loadPubLikes()])
.timeout(const Duration(seconds: 6));
return _PackageStats(githubStars: values[0], pubLikes: values[1]);
}

Expand Down
28 changes: 14 additions & 14 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ packages:
dependency: "direct main"
description:
name: cupertino_icons
sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd"
sha256: b7cc2390aac296c083bea762859413eb1cf5b630c70e0c7e4d831018f762a8b2
url: "https://pub.dev"
source: hosted
version: "1.0.9"
version: "2.0.0"
cupertino_ui:
dependency: transitive
description:
Expand Down Expand Up @@ -161,18 +161,18 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "008ab21d89d0de8ccd79586838f7533f126c2d894f50bf25f2947888d3c225b5"
sha256: "530dcbb298dc7c319aea9e3b7c580a61effb2abee2c93825d2dd8d5af0e230f1"
url: "https://pub.dev"
source: hosted
version: "18.0.1"
version: "18.0.2"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
sha256: e3cb3ee6b47fd2472c23de6da5744796a4da195137759ddb3fbcc9467b7b3c7d
sha256: fdbbfbbb1a62f376ab29fa9627561d389751fb984da0b630ce3326e272911c8a
url: "https://pub.dev"
source: hosted
version: "8.2.1"
version: "9.0.0"
hooks:
dependency: transitive
description:
Expand Down Expand Up @@ -297,10 +297,10 @@ packages:
dependency: transitive
description:
name: material_ui
sha256: "7ba1ca315d50a004791dbab290417c52a61466d56db2822fe3c5c2994903110c"
sha256: "98ab9eda579ecae623e4b376c603035c5def78ce706f735f30bd632af5814695"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.6.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -456,10 +456,10 @@ packages:
dependency: "direct main"
description:
name: shared_preferences
sha256: c3025c5534b01739267eb7d76959bbc25a6d10f6988e1c2a3036940133dd10bf
sha256: "1e85e0dccf5b4a016077fea7dfbb4a7cb39c759ac1596fcf60c06deadb7da91f"
url: "https://pub.dev"
source: hosted
version: "2.5.5"
version: "2.5.6"
shared_preferences_android:
dependency: transitive
description:
Expand Down Expand Up @@ -573,10 +573,10 @@ packages:
dependency: "direct main"
description:
name: url_launcher
sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
sha256: e8cc955c97e06df9879140a1fe301f3d493f01b7c62dec7f46834be31d7e9fda
url: "https://pub.dev"
source: hosted
version: "6.3.2"
version: "6.3.3"
url_launcher_android:
dependency: transitive
description:
Expand Down Expand Up @@ -706,5 +706,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.12.0 <4.0.0"
flutter: ">=3.44.0"
dart: ">=3.13.0 <4.0.0"
flutter: ">=3.47.0"
13 changes: 7 additions & 6 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,28 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ">=3.9.0 <4.0.0"
sdk: ">=3.13.0 <4.0.0"
flutter: ">=3.47.0"

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
cupertino_icons: ^2.0.0
flutter_tabler_icons: ^1.43.0
flutter_svg: ^2.3.0
flutter_web_plugins:
sdk: flutter
font_awesome_flutter: ^11.0.0
go_router: ^18.0.1
google_fonts: ^8.1.0
go_router: ^18.0.2
google_fonts: ^9.0.0
http: ^1.6.0
lucide_icons_flutter: ^3.1.20
morphnext:
path: ..
reel_text: ^0.5.1
remixicon: ^4.9.3
shared_preferences: ^2.5.5
url_launcher: ^6.3.2
shared_preferences: ^2.5.6
url_launcher: ^6.3.3

dev_dependencies:
flutter_test:
Expand Down
6 changes: 3 additions & 3 deletions example/tool/renderer_visual_audit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ void main() {
}

Future<void> _loadIconFonts() async {
final manifest =
jsonDecode(await rootBundle.loadString('FontManifest.json', cache: false))
as List<Object?>;
final manifest = jsonDecode(
await rootBundle.loadString('FontManifest.json', cache: false),
) as List<Object?>;
final loads = <Future<void>>[];
for (final rawFamily in manifest) {
final family = rawFamily! as Map<String, Object?>;
Expand Down
6 changes: 3 additions & 3 deletions example/tool/site_design_capture_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ void main() {
}

Future<void> _loadIconFonts() async {
final manifest =
jsonDecode(await rootBundle.loadString('FontManifest.json', cache: false))
as List<Object?>;
final manifest = jsonDecode(
await rootBundle.loadString('FontManifest.json', cache: false),
) as List<Object?>;
final loads = <Future<void>>[];
for (final rawFamily in manifest) {
final family = rawFamily! as Map<String, Object?>;
Expand Down
Loading