Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default return NavigationView() throw error from version 3.10.0🐛 #276

Closed
CodingWithTashi opened this issue Apr 9, 2022 · 0 comments · Fixed by #278
Closed

default return NavigationView() throw error from version 3.10.0🐛 #276

CodingWithTashi opened this issue Apr 9, 2022 · 0 comments · Fixed by #278
Labels
bug Something isn't working

Comments

@CodingWithTashi
Copy link

Issue
default return NavigationView() throw error from version 3.10.0

To Reproduce
Steps to reproduce the behavior:

  1. Add fluent_ui 3.10.0 in yaml
  2. Update the main.dart as below
import 'package:fluent_ui/fluent_ui.dart';

void main() {
  runApp(const MyApp());
}
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
 @override
  Widget build(BuildContext context) {
    return FluentApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        accentColor: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

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

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return NavigationView();
  }
}
  1. See error
The relevant error-causing widget was: 
  HomePage HomePage:file:///D:/Development/flutter/window_wallper_app/lib/main.dart:16:19
When the exception was thrown, this was the stack: 
#0      NavigationViewState.generateKeys (package:fluent_ui/src/controls/navigation/navigation_view/view.dart:150:36)
#1      NavigationViewState.initState (package:fluent_ui/src/controls/navigation/navigation_view/view.dart:123:5)

Expected behavior
Either make pane tag required field or handle null check if it is optional.

Screenshots
null

@bdlukaa bdlukaa added the bug Something isn't working label Apr 9, 2022
bdlukaa added a commit that referenced this issue Apr 9, 2022
@bdlukaa bdlukaa mentioned this issue Apr 9, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants