Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b0e51db8
Unverified
Commit
b0e51db8
authored
Jul 20, 2021
by
Michael Goderbauer
Committed by
GitHub
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for upcoming changes to avoid_classes_with_only_static_members (#86744)
parent
f3d8562c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
283 additions
and
277 deletions
+283
-277
app_state_model.dart
...lutter_gallery/lib/demo/shrine/model/app_state_model.dart
+2
-2
products_repository.dart
...er_gallery/lib/demo/shrine/model/products_repository.dart
+273
-275
fuchsia_compat.dart
packages/flutter_driver/lib/src/common/fuchsia_compat.dart
+4
-0
event_simulation.dart
packages/flutter_test/lib/src/event_simulation.dart
+4
-0
No files found.
dev/integration_tests/flutter_gallery/lib/demo/shrine/model/app_state_model.dart
View file @
b0e51db8
...
...
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import
'package:flutter_gallery/demo/shrine/model/product.dart'
;
import
'package:flutter_gallery/demo/shrine/model/products_repository.dart'
;
import
'package:flutter_gallery/demo/shrine/model/products_repository.dart'
as
product_repository
;
import
'package:scoped_model/scoped_model.dart'
;
double
_salesTaxRate
=
0.06
;
...
...
@@ -99,7 +99,7 @@ class AppStateModel extends Model {
// Loads the list of available products from the repo.
void
loadProducts
()
{
_availableProducts
=
ProductsR
epository
.
loadProducts
(
Category
.
all
);
_availableProducts
=
product_r
epository
.
loadProducts
(
Category
.
all
);
notifyListeners
();
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/shrine/model/products_repository.dart
View file @
b0e51db8
...
...
@@ -4,8 +4,7 @@
import
'package:flutter_gallery/demo/shrine/model/product.dart'
;
class
ProductsRepository
{
static
List
<
Product
>
loadProducts
(
Category
category
)
{
List
<
Product
>
loadProducts
(
Category
category
)
{
const
List
<
Product
>
allProducts
=
<
Product
>[
Product
(
category:
Category
.
accessories
,
...
...
@@ -279,5 +278,4 @@ class ProductsRepository {
}
else
{
return
allProducts
.
where
((
Product
p
)
=>
p
.
category
==
category
).
toList
();
}
}
}
packages/flutter_driver/lib/src/common/fuchsia_compat.dart
View file @
b0e51db8
...
...
@@ -83,6 +83,10 @@ Future<PortForwarder> _dummyPortForwardingFunction(
/// `FUCHSIA_SSH_CONFIG` variables must be set. If run on a Fuchsia device, will
/// connect locally without need for environment variables.
class
FuchsiaCompat
{
// This class is not meant to be instantiated or extended; this constructor
// prevents instantiation and extension.
FuchsiaCompat
.
_
();
static
void
_init
()
{
fuchsiaPortForwardingFunction
=
_dummyPortForwardingFunction
;
}
...
...
packages/flutter_test/lib/src/event_simulation.dart
View file @
b0e51db8
...
...
@@ -26,6 +26,10 @@ String _keyLabel(LogicalKeyboardKey key) {
/// A class that serves as a namespace for a bunch of keyboard-key generation
/// utilities.
class
KeyEventSimulator
{
// This class is not meant to be instantiated or extended; this constructor
// prevents instantiation and extension.
KeyEventSimulator
.
_
();
// Look up a synonym key, and just return the left version of it.
static
LogicalKeyboardKey
_getKeySynonym
(
LogicalKeyboardKey
origKey
)
{
if
(
origKey
==
LogicalKeyboardKey
.
shift
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment