Comments (6)
Can you please show the whole logs?
from fluent_ui.
Next time i get the error i will post the complete error.
But in my understanding the shown error is complete. It occures sometimes if the hot-reload triggers. I do not change anything in the top of the widgets tree.
from fluent_ui.
I never got this error. I'd like to know from what line it comes.
from fluent_ui.
This is the entire log: (I replaced the project name with PROJECT). Below the error message i posted the main.dart
════════ Exception caught by widgets library ═══════════════════════════════════
The following NoSuchMethodError was thrown building MyApp(dirty):
No constructor 'FluentApp.' with matching arguments declared in class 'FluentApp'.
Receiver: FluentApp
Tried calling: new FluentApp.()
Found: new FluentApp.({Key? key, GlobalKey? navigatorKey, ((RouteSettings) => Route?)? onGenerateRoute, ((String) => List<Route>)? onGenerateInitialRoutes, ((RouteSettings) => Route?)? onUnknownRoute, List? navigatorObservers, String? initialRoute, ((RouteSettings, (BuildContext) => Widget) => PageRoute)? pageRouteBuilder, Widget? home, Map<String, (BuildContext) => Widget>? routes, ((BuildContext, Widget?) => Widget)? builder, String title, ((BuildContext) => String)? onGenerateTitle, Color? color, Locale? locale, Iterable<LocalizationsDelegate>? localizationsDelegates, ((List?, Iterable) => Locale?)? localeListResolutionCallback, ((Locale?, Iterable) => Locale?)? localeResolutionCallback, Iterable supportedLocales, bool showPerformanceOverlay, bool checkerboardRasterCacheImages, bool checkerboardOffscreenLayers, bool showSemanticsDebugger, bool debugShowWidgetInspector, bool debugShowCheckedModeBanner, ((BuildContext, () => void) => Widget)? inspectorSelectButtonBuilder, Map<LogicalKeySet, Intent>? shortcuts, Map<Type, Action>? actions, Style? style, Style? darkStyle, ThemeMode? themeMode}) => FluentApp
Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can be enabled by passing --track-widget-creation
to flutter run
or flutter test
.
When the exception was thrown, this was the stack
#0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:212:5)
#1 MyApp.build (package:PROJECT/main.dart)
package:PROJECT/main.dart:1
#2 StatelessElement.build
package:flutter/…/widgets/framework.dart:4569
#3 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4495
#4 Element.rebuild
package:flutter/…/widgets/framework.dart:4189
...
════════════════════════════════════════════════════════════════════════════════
Reloaded 2 of 723 libraries in 797ms.
class MyApp extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return FluentApp(
title: "PROJECT",
debugShowCheckedModeBanner: false,
initialRoute: '/',
routes: {
'/': (_) => MainPage(),
},
);
}
}
The MainPage is pretty much the same from the given example project with one "DatabaseEdit" and one SettingsPage.
I hope this will help you :)
from fluent_ui.
Hey! According to the error. it's not an issue with the package, since it comes from main.dart#1
I searched in my whole fluent_ui workspace and the only place FluentApp.
is mentioned is at FluentApp.router
:
from fluent_ui.
Then it must be a problem in my main.dart file. I will have a look at it.
Thanks for your help :)
from fluent_ui.
Related Issues (20)
- 🐛 Maximized fluent_ui app prevents automatically hidden taskbar from appearing HOT 2
- DataTable or the equivalent in the package HOT 2
- 🐛 No DataTable Equivalent in Fluent-ui package HOT 1
- 🐛 TabView: RangeError (index): Invalid value: Not in inclusive range 0..1: 2 HOT 1
- TreeView: How to expand on item click not just only Arrow icon? HOT 1
- 🐛 To close Flyout after MenuFlyoutSubItem press. HOT 2
- 🐛 Slider handle overflows or gets cut off HOT 2
- 🐛 A child of `Button` has an unbound height constraint.
- EditableComboBox - add inputFormatters HOT 2
- 🐛 TreeViewItem.from does not set parent on copied children
- 🐛 Slider cannot be moved sometimes HOT 3
- Is it possible to disable a `MenuFlyoutItem`? HOT 1
- 🐛 Unknown trigger system sound HOT 2
- 🐛 Wrong number of days for a month in `DatePicker`
- Allow the tab to be customized
- 🐛 `NavigationAppBar`'s `automaticallyImplyLeading` behavior is wrong HOT 2
- acrylic navigationview HOT 1
- 🐛 `FixedExtentScrollController` scrolling issue in `DatePicker`
- PaneItem and TabView Color HOT 3
- 🐛 Invalid font set in theme HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent_ui.