Skip to content

Commit c753085

Browse files
committed
fixing analysis issues
1 parent 76bcdb0 commit c753085

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/demo/lib/example_browser.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ExampleBrowser extends StatefulWidget {
2626
class _ExampleBrowserState extends State<ExampleBrowser> {
2727
late final ExampleNavigationState _navState;
2828
Example? _selectedExample;
29-
String? _selectedCategoryId;
3029
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
3130

3231
@override
@@ -50,7 +49,6 @@ class _ExampleBrowserState extends State<ExampleBrowser> {
5049
if (example != null) {
5150
setState(() {
5251
_selectedExample = example;
53-
_selectedCategoryId = categoryId;
5452
});
5553
_navState.selectExample(exampleId);
5654
}

packages/demo/lib/examples/basics/controlling_nodes.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,14 @@ class _ControllingNodesExampleState extends State<ControllingNodesExample> {
6464
_controller.addNode(node);
6565
}
6666

67-
Node<Map<String, dynamic>> _createNode(String nodeType, int counter,
68-
[Offset? position]) {
67+
Node<Map<String, dynamic>> _createNode(
68+
String nodeType,
69+
int counter, [
70+
Offset? position,
71+
]) {
6972
// Use provided position or generate random position
70-
final nodePosition = position ??
73+
final nodePosition =
74+
position ??
7175
Offset(
7276
100.0 + math.Random().nextDouble() * 400,
7377
100.0 + math.Random().nextDouble() * 300,
@@ -291,7 +295,6 @@ class _ControllingNodesExampleState extends State<ControllingNodesExample> {
291295
final innerRadius = math.max(0.0, outerRadius - borderWidth);
292296

293297
final theme = Theme.of(context);
294-
final isDark = theme.brightness == Brightness.dark;
295298
final colorType =
296299
node.data['colorType'] as String? ?? 'surfaceContainerHighest';
297300

0 commit comments

Comments
 (0)