-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b841a6e
commit 1ad1a11
Showing
10 changed files
with
435 additions
and
122 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'dart:ui'; | ||
|
||
import 'package:equatable/equatable.dart'; | ||
import 'package:redux/redux.dart'; | ||
|
||
import 'app_state.dart'; | ||
|
||
class PageMediaViewModel extends Equatable { | ||
final Size size; | ||
final Brightness displayBrightness; | ||
final Function dispatch; | ||
|
||
const PageMediaViewModel( | ||
{required this.size, | ||
required this.displayBrightness, | ||
required this.dispatch}); | ||
|
||
static PageMediaViewModel fromStore(Store<AppState> store) { | ||
return PageMediaViewModel( | ||
size: store.state.size, | ||
displayBrightness: store.state.displayBrightness, | ||
dispatch: store.dispatch); | ||
} | ||
|
||
@override | ||
List<Object?> get props => [size, displayBrightness, dispatch]; | ||
} |
This file was deleted.
Oops, something went wrong.
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.