Skip to content

Commit 174cd6a

Browse files
authored
fix README (#259)
2 parents 967a19f + 9c27061 commit 174cd6a

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ This is especially helpful in 10-foot scenarios where the user might not be payi
318318

319319
### Enabling it
320320

321-
Reveal Focus is off by default. To enable it, change the `focusStyle` in your app `ThemeData`:
321+
Reveal Focus is off by default. To enable it, change the `focusTheme` in your app `ThemeData`:
322322

323323
```dart
324324
theme: ThemeData(
325-
focusTheme: FocusStyle(
325+
focusTheme: FocusThemeData(
326326
glowFactor: 4.0,
327327
),
328328
),
@@ -334,7 +334,7 @@ To enable it in a 10 foot screen, use the method `is10footScreen`:
334334
import 'dart:ui' as ui;
335335
336336
theme: ThemeData(
337-
focusStyle: FocusStyle(
337+
focusTheme: FocusThemeData(
338338
glowFactor: is10footScreen(ui.window.physicalSize.width) ? 2.0 : 0.0,
339339
),
340340
),
@@ -489,13 +489,12 @@ pane: NavigationPane(
489489
axis??= Axis.horizontal;
490490
491491
return EndNavigationIndicator(
492-
index: pane.selected,
493-
offsets: () => pane.effectiveItems.getPaneItemsOffsets(pane.paneKey),
494-
sizes: pane.effectiveItems.getPaneItemsSizes,
492+
pane: pane,
493+
index: pane.selected!,
495494
child: child,
495+
axis: axis,
496496
color: theme.highlightColor,
497497
curve: theme.animationCurve ?? Curves.linear,
498-
axis: axis,
499498
);
500499
},
501500
)
@@ -594,16 +593,7 @@ SizedBox(
594593
tabs: List.generate(tabs, (index) {
595594
return Tab(
596595
text: Text('Tab $index'),
597-
closeIcon: Tooltip(
598-
message: 'Close tab',
599-
child: IconButton(
600-
icon: Icon(FluentIcons.close),
601-
onPressed: () {
602-
setState(() => tabs--);
603-
if (currentIndex > tabs - 1) currentIndex--;
604-
},
605-
),
606-
),
596+
closeIcon: FluentIcons.chrome_close,
607597
);
608598
}),
609599
bodies: List.generate(

0 commit comments

Comments
 (0)