Skip to content

Commit

Permalink
♻️ Fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte2036 committed Mar 15, 2024
1 parent 5c93f98 commit c906848
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class _FTMSPageState extends State<FTMSPage> {
Text(
FTMS.convertDeviceDataTypeToString(
snapshot.data!.deviceDataType),
textScaleFactor: 4,
textScaler: const TextScaler.linear(4),
style:
TextStyle(color: Theme.of(context).primaryColor),
),
Expand All @@ -190,7 +190,7 @@ class _FTMSPageState extends State<FTMSPage> {
.getDeviceDataParameterValues()
.map((parameterValue) => Text(
parameterValue.toString(),
textScaleFactor: 2,
textScaler: const TextScaler.linear(2),
))
.toList(),
),
Expand Down Expand Up @@ -225,7 +225,7 @@ class _FTMSPageState extends State<FTMSPage> {
children: [
Text(
"Device Data Features",
textScaleFactor: 3,
textScaler: const TextScaler.linear(3),
style: TextStyle(color: Theme.of(context).primaryColor),
),
Column(
Expand Down
35 changes: 17 additions & 18 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -73,11 +73,10 @@ packages:
flutter_ftms:
dependency: "direct main"
description:
name: flutter_ftms
sha256: dde5cc24219d169ea6b1eacb423dac36c1b3a7e828038c42159b7e981c342a9c
url: "https://pub.dev"
source: hosted
version: "1.0.1"
path: ".."
relative: true
source: path
version: "1.0.2"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -119,10 +118,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -196,18 +195,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
string_scanner:
dependency: transitive
description:
Expand All @@ -228,10 +227,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.1"
vector_math:
dependency: transitive
description:
Expand All @@ -244,10 +243,10 @@ packages:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
version: "0.3.0"
sdks:
dart: ">=3.1.0-185.0.dev <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=2.8.0"
3 changes: 2 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter_ftms: "^1.0.2"
flutter_ftms:
path: ../
flutter:
sdk: flutter

Expand Down

0 comments on commit c906848

Please sign in to comment.