Giter Club home page Giter Club logo

Comments (6)

bdlukaa avatar bdlukaa commented on July 20, 2024

Can you please show the whole logs?

from fluent_ui.

maik-kluwe avatar maik-kluwe commented on July 20, 2024

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.

bdlukaa avatar bdlukaa commented on July 20, 2024

I never got this error. I'd like to know from what line it comes.

from fluent_ui.

maik-kluwe avatar maik-kluwe commented on July 20, 2024

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.

bdlukaa avatar bdlukaa commented on July 20, 2024

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:

Workspace preview

from fluent_ui.

maik-kluwe avatar maik-kluwe commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.