Skip to content

Commit

Permalink
Merge pull request #286 from jeroen1602/update-dependencies
Browse files Browse the repository at this point in the history
Updated dependencies.
  • Loading branch information
jeroen1602 authored Dec 16, 2024
2 parents a3729d9 + da76b9e commit fb335f3
Show file tree
Hide file tree
Showing 20 changed files with 126 additions and 125 deletions.
2 changes: 1 addition & 1 deletion lib/data/helper_structures/with_timeout.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///
/// A simple data class for streams that have a timeout.
/// A normal usage would be.
/// StreamBuilder<WithTimeout<String?>>(
/// StreamBuilder&lt;WithTimeout&lt;String?&gt;&gt;(
/// stream: someStream,
/// initialData: WithTimeout.empty(),
/// builder: (context, snapshot) {
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ class _SettingsContentState extends State<SettingsContent> {
return "Dark";
case ThemeMode.light:
return "Light";
default:
return "UNKNOWN";
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/theming.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Theming {
final double iconOpacity = iconTheme.opacity ?? 1.0;
Color iconColor = iconTheme.color!;
if (iconOpacity != 1.0) {
iconColor = iconColor.withOpacity(iconColor.opacity * iconOpacity);
iconColor = iconColor.withValues(alpha: iconColor.a * iconOpacity);
}
return iconColor;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/widgets/dao_data_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class DaoTableDataWidget<T> extends StatelessWidget {
),
subtitle: Text(snapshot.error.toString(),
style: theming.bodyMedium?.copyWith(
color: theme.colorScheme.onError.withOpacity(0.75))),
color:
theme.colorScheme.onError.withValues(alpha: 0.75))),
),
)
else if (data != null)
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/markdown/src/icon_syntax.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of '../markdown.dart';

///
/// Convert an <icon>{the icon}</icon> tag into an element that can be used in
/// Convert an &lt;icon&gt;{the icon}&lt;/icon&gt; tag into an element that can be used in
/// markdown. Use the [IconBuilder] to then build the correct icon.
///
class IconSyntax extends md.InlineSyntax {
Expand Down
10 changes: 5 additions & 5 deletions lighthouse_provider/lighthouse_back_end/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
meta: ">=1.3.0 <2.0.0"
convert: ^3.1.2
collection: ^1.18.0
convert: ">=3.1.2 <4.0.0"
collection: ">=1.18.0 <2.0.0"
lighthouse_provider:
path: ../lighthouse_provider
lighthouse_logger:
path: ../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
fake_back_end:
path: ../lighthouse_back_ends/fake_back_end
shared_platform:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class BlueZBackEnd extends BLELighthouseBackEnd {
return false;
})
// Give the listener at least 2ms to process the data before firing again.
.debounce((final _) => TimerStream(true, Duration(milliseconds: 2)))
.debounceTime(const Duration(milliseconds: 2))
.listen((final device) async {
await device.setTrusted(true);
final lighthouseDevice =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
bluez: ^0.8.2
mutex: ^3.1.0
rxdart: ^0.28.0
mutex: ">=3.1.0 <4.0.0"
rxdart: ">=0.28.0 <1.0.0"
lighthouse_back_end:
path: ../../lighthouse_back_end
lighthouse_provider:
Expand All @@ -18,5 +18,5 @@ dependencies:
path: ../../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
flutter_web_bluetooth: ^1.0.0
meta: ">=1.3.0 <2.0.0"
mutex: ^3.1.0
rxdart: ^0.28.0
convert: ^3.1.2
mutex: ">=3.1.0 <4.0.0"
rxdart: ">=0.28.0 <1.0.0"
convert: ">=3.1.2 <4.0.0"
lighthouse_back_end:
path: ../../lighthouse_back_end
lighthouse_provider:
Expand All @@ -24,7 +24,7 @@ dependencies:
path: ../../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
lighthouse_test_helper:
path: ../../lighthouse_test_helper
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ class FlutterBluePlusLighthouseBackEnd extends BLELighthouseBackEnd {
return output;
})
// Give the listener at least 2ms to process the data before firing again.
.debounce(
(final _) => TimerStream(true, const Duration(milliseconds: 2)))
.debounceTime(const Duration(milliseconds: 2))
.listen((final scanResults) {
if (scanResults.isEmpty) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ version: 1.0.1
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
flutter: ">=3.24.5"
sdk: ">=3.6.0 <4.0.0"
flutter: ">=3.27.0"

dependencies:
flutter:
sdk: flutter
flutter_blue_plus: ^1.34.5
mutex: ^3.1.0
rxdart: ^0.28.0
mutex: ">=3.1.0 <4.0.0"
rxdart: ">=0.28.0 <1.0.0"
lighthouse_back_end:
path: ../../lighthouse_back_end
lighthouse_provider:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
flutter_web_bluetooth: ^1.0.0
mutex: ^3.1.0
rxdart: ^0.28.0
mutex: ">=3.1.0 <4.0.0"
rxdart: ">=0.28.0 <1.0.0"
lighthouse_back_end:
path: ../../lighthouse_back_end
lighthouse_provider:
Expand All @@ -18,5 +18,5 @@ dependencies:
path: ../../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
8 changes: 4 additions & 4 deletions lighthouse_provider/lighthouse_logger/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
logging: ^1.3.0
logging: ">=1.3.0 <2.0.0"

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
16 changes: 8 additions & 8 deletions lighthouse_provider/lighthouse_provider/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
meta: ">=1.3.0 <2.0.0"
mutex: ^3.1.0
rxdart: ^0.28.0
tuple: ^2.0.2
collection: ^1.18.0
convert: ^3.1.2
mutex: ">=3.1.0 <4.0.0"
rxdart: ">=0.28.0 <1.0.0"
tuple: ">=2.0.2 <3.0.0"
collection: ">=1.18.0 <2.0.0"
convert: ">=3.1.2 <4.0.0"
lighthouse_back_end:
path: ../lighthouse_back_end
shared_platform:
Expand All @@ -21,8 +21,8 @@ dependencies:
path: ../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
fake_back_end:
path: ../lighthouse_back_ends/fake_back_end
lighthouse_providers:
Expand Down
8 changes: 4 additions & 4 deletions lighthouse_provider/lighthouse_providers/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
flutter_web_bluetooth: ^1.0.0
meta: ">=1.3.0 <2.0.0"
rxdart: ^0.28.0
rxdart: ">=0.28.0 <1.0.0"
lighthouse_provider:
path: ../lighthouse_provider
lighthouse_back_end:
Expand All @@ -20,8 +20,8 @@ dependencies:
path: ../lighthouse_logger

dev_dependencies:
lints: ^5.0.0
test: ^1.25.8
lints: ">=5.1.0 <6.0.0"
test: ">=1.25.12 < 2.0.0"
fake_back_end:
path: ../lighthouse_back_ends/fake_back_end
lighthouse_test_helper:
Expand Down
8 changes: 4 additions & 4 deletions lighthouse_provider/lighthouse_test_helper/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=3.5.4 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
meta: ">=1.3.0 <2.0.0"
rxdart: ^0.28.0
rxdart: ">=0.28.0 <1.0.0"
shared_platform:
path: ../../shared/shared_platform
fake_back_end:
Expand All @@ -19,7 +19,7 @@ dependencies:
path: ../lighthouse_provider
lighthouse_providers:
path: ../lighthouse_providers
test: ^1.24.9
test: ">=1.24.9 < 2.0.0"

dev_dependencies:
lints: ^5.0.0
lints: ">=5.1.0 <6.0.0"
Loading

0 comments on commit fb335f3

Please sign in to comment.