Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

Commit d6df9e0

Browse files
authored
Add material tree example (#28)
Add sanity check test for tree example. Remove block element styling that makes source code links clickable area stretch across the page.
1 parent b8c4f5c commit d6df9e0

File tree

11 files changed

+433
-255
lines changed

11 files changed

+433
-255
lines changed

lib/app_component.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
* BSD-style license that can be found in the LICENSE file.
55
*/
66

7-
.source-link:link, .source-link:visited, .source-link:active {
8-
display: block;
9-
padding-bottom: 10px;
7+
ul {
8+
list-style-type: none;
109
}
1110

12-
.source-link:hover {
13-
display: block;
14-
padding-bottom: 10px;
11+
li {
12+
padding: 5px 0;
13+
}
14+
15+
ul.source-links {
16+
padding: 0;
1517
}

lib/app_component.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import 'src/material_spinner_demo/material_spinner_demo.dart';
2121
import 'src/material_tab_demo/material_tab_demo.dart';
2222
import 'src/material_toggle_demo/material_toggle_demo.dart';
2323
import 'src/material_tooltip_demo/material_tooltip_demo.dart';
24+
import 'src/material_tree_demo/material_tree_demo.dart';
2425
import 'src/material_yes_no_buttons_demo/material_yes_no_buttons_demo.dart';
2526
import 'src/reorder_list_demo/reorder_list_demo.dart';
2627
import 'src/scorecard_demo/scorecard_demo.dart';
@@ -47,6 +48,7 @@ import 'src/scorecard_demo/scorecard_demo.dart';
4748
MaterialTabDemoComponent,
4849
MaterialToggleDemoComponent,
4950
MaterialTooltipDemoComponent,
51+
MaterialTreeDemoComponent,
5052
MaterialYesNoButtonsDemoComponent,
5153
ReorderListDemoComponent,
5254
ScorecardDemoComponent,

0 commit comments

Comments
 (0)