-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: flutter_adaptive_scaffoldThe flutter_adaptive_scaffold packageThe flutter_adaptive_scaffold packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
The layout procedure responsible for the left navigation bar should resemble the Drawer APIs. If we set the number of NavigationDestinations on AdaptiveScaffold to some arbitrary number, we must have some comprehensive reason for why we do not allow an empty sidebar or one element in the sidebar.
Give a better error message whenever the rules of the NavigationDestination items are less than the number required.
Steps to Reproduce
Code sample
- Clone flutter/packages into the folder of your choice (at the time of writing,
AdaptiveScaffoldhas not been released. - Add adaptive_scaffold to the flutter project:
dependencies
adaptive_scaffold:
path: <path_to_the_packages_repo>/packages/adaptive_scaffold/- Add the following to
main.dart
import 'package:flutter/material.dart';
import 'package:adaptive_scaffold/adaptive_scaffold.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: AdaptiveScaffold(
destinations: [
NavigationDestination(icon: Icon(Icons.home), label: "ABCDEFGHIJKLMNOP")
],
),
);
}
}Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: flutter_adaptive_scaffoldThe flutter_adaptive_scaffold packageThe flutter_adaptive_scaffold packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team