-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract playground components #23253
Merged
pabloem
merged 18 commits into
apache:master
from
akvelon:pg_22600_extract-playground-components
Sep 24, 2022
Merged
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
59daadb
[Tour of Beam][Frontend][#22600] TourScreen layout
alexeyinkin e64d3c8
addressing review comments #22600
8222fae
branded sign in buttons #22600
dd585bc
_BrandedSignInButtons #22600
f9ed0ce
_Divider color #22600
999e916
profile #22600
1d1ff90
moved split_view from PGC into ToB #22600
dfca997
indentation fix #22600
f8e462d
split ProfileContent into widgets #22600
ad2d51d
Merge branch 'master' into 22600_tob_main_page
alexeyinkin 0ac6513
Extract playground components to a separate package (#22600)
alexeyinkin d735c71
Minor fixes (#22600)
alexeyinkin 1baa787
Address review issues (#22600)
alexeyinkin f6dc5bc
Upgrade Flutter to v3.3.2 (#22600)
alexeyinkin 09c32b6
Add precommit Gradle task for playground_components, add code generat…
alexeyinkin 14858f8
startTour button (#22600)
63919e4
lint fixes (#22600)
e00889a
Fix highlighting for Python and SCIO (#22600)
alexeyinkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
learning/tour-of-beam/frontend/assets/svg/profile-about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
learning/tour-of-beam/frontend/assets/svg/profile-delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
learning/tour-of-beam/frontend/assets/svg/profile-logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
learning/tour-of-beam/frontend/assets/svg/unit-progress-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
learning/tour-of-beam/frontend/assets/svg/unit-progress-100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
42 changes: 42 additions & 0 deletions
42
learning/tour-of-beam/frontend/lib/components/expansion_tile_wrapper.dart
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,42 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:playground_components/playground_components.dart'; | ||
|
||
class ExpansionTileWrapper extends StatelessWidget { | ||
final ExpansionTile expansionTile; | ||
const ExpansionTileWrapper(this.expansionTile); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Theme( | ||
data: Theme.of(context).copyWith( | ||
hoverColor: BeamColors.transparent, | ||
splashColor: BeamColors.transparent, | ||
highlightColor: BeamColors.transparent, | ||
dividerColor: BeamColors.transparent, | ||
unselectedWidgetColor: Colors.grey, | ||
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.grey), | ||
visualDensity: const VisualDensity(vertical: -4), | ||
listTileTheme: const ListTileThemeData(dense: true), | ||
), | ||
child: expansionTile, | ||
); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
learning/tour-of-beam/frontend/lib/components/filler_text.dart
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,29 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
class FillerText extends StatelessWidget { | ||
final int width; | ||
const FillerText({required this.width}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Text(''.padRight(width, 'Just a filler text. ')); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in alphabetic order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+