-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Keep the old device list when resuming the app. This stops the devices from leaving when you open and close the notification panel Stop using `runtimeType` since they are compiled away (at least for web builds) * Created log page for debugging * Added debug option for release builds lighthouse provider: Providers can now be added before back ends Tapping the version number in settings 10 times enables debug mode. Enabling debug mode enables: - Adding a fake back end - Looking at the logs - Looking at the material test page
- Loading branch information
1 parent
a04bd91
commit 8f1eed5
Showing
52 changed files
with
793 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:lighthouse_pm/bloc.dart'; | ||
import 'package:rxdart/rxdart.dart'; | ||
|
||
class AppRouteSettings { | ||
const AppRouteSettings(final bool? debugEnabled) | ||
: debugEnabled = debugEnabled ?? false; | ||
|
||
const AppRouteSettings.withDefaults() : this(null); | ||
|
||
final bool debugEnabled; | ||
|
||
static Stream<AppRouteSettings> getStream(final LighthousePMBloc bloc) { | ||
return MergeStream( | ||
[Stream.value(false), bloc.settings.getDebugModeEnabledStream()]) | ||
.map((final enabled) { | ||
return AppRouteSettings(enabled); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.