flutter/packages
Taha Tesser 17c664fbbd
Fix NavigationRail's indicator inkwell doesn't support transparent color. (#136359)
fixes [NavigationRail can't have a transparent Hover color because there is always opacity set](https://github.com/flutter/flutter/issues/135866)

### Code sample

<details>
<summary>expand to view the code sample</summary> 

```dart
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.green).copyWith(
          primary: Colors.transparent,
        ),
      ),
      home: const Example(),
    );
  }
}

class Example extends StatefulWidget {
  const Example({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  int _selectedIndex = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('NavigationRail Example'),
      ),
      body: Row(
        children: <Widget>[
          NavigationRail(
            selectedIndex: _selectedIndex,
            onDestinationSelected: (int index) {
              setState(() {
                _selectedIndex = index;
              });
            },
            labelType: NavigationRailLabelType.all,
            destinations: const <NavigationRailDestination>[
              NavigationRailDestination(
                icon: Icon(Icons.favorite_border),
                selectedIcon: Icon(Icons.favorite),
                label: Text('First'),
              ),
              NavigationRailDestination(
                icon: Icon(Icons.bookmark_border),
                selectedIcon: Icon(Icons.book),
                label: Text('Second'),
              ),
              NavigationRailDestination(
                icon: Icon(Icons.star_border),
                selectedIcon: Icon(Icons.star),
                label: Text('Third'),
              ),
            ],
          ),
          const VerticalDivider(thickness: 1, width: 1),
          Expanded(
            child: Center(
              child: Text('Selected Index: $_selectedIndex'),
            ),
          )
        ],
      ),
    );
  }
}
```

</details>
2023-10-16 08:48:13 +00:00
..
flutter Fix NavigationRail's indicator inkwell doesn't support transparent color. (#136359) 2023-10-16 08:48:13 +00:00
flutter_driver [Impeller] GPU frame timings summarization. (#136408) 2023-10-13 22:18:37 +00:00
flutter_goldens Bump file,process,process_runner (#136418) 2023-10-12 13:05:24 -07:00
flutter_goldens_client Bump file,process,process_runner (#136418) 2023-10-12 13:05:24 -07:00
flutter_localizations Allow latest pkg:material_color_utilities (#132445) 2023-10-11 23:57:16 +00:00
flutter_test Bump file,process,process_runner (#136418) 2023-10-12 13:05:24 -07:00
flutter_tools [web] remove loading indicator in -d web-server builds (#136482) 2023-10-12 23:45:06 +00:00
flutter_web_plugins Allow latest pkg:material_color_utilities (#132445) 2023-10-11 23:57:16 +00:00
fuchsia_remote_debug_protocol Bump file,process,process_runner (#136418) 2023-10-12 13:05:24 -07:00
integration_test Bump file,process,process_runner (#136418) 2023-10-12 13:05:24 -07:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00