Coder Social home page Coder Social logo

flutter-web-dashboard-template's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @Santos-Enoque
  • ๐Ÿ‘€ Iโ€™m interested in Flutter, DevOps and Machine Learning
  • ๐ŸŒฑ Iโ€™m currently a member of the Computer Vision Lab @ the University of Tsukuba
  • ๐Ÿ’ž๏ธ Iโ€™m a Build Engineer @Cyberdyne
  • ๐Ÿ“ซ Ohh... I have a youtube Channel too @santosenoque
  • ๐Ÿ“ง [email protected] or Santos Enoque @linkedin

flutter-web-dashboard-template's People

Contributors

salahu01 avatar santos-enoque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-web-dashboard-template's Issues

Flutter keeps throwing an error after adding local navigator

Hey Guys,

the title descries my problem. I made a few differences in the way that my routes work, since I wanted a more object-oriented way. I don't know what the f*** is going on, since I can't find any relevant differences.

  • repo:
  • Error:
    `Performing hot restart... 1,062ms
    Restarted application in 1,062ms.
    โ•โ•โ•ก EXCEPTION CAUGHT BY RENDERING LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
    The following assertion was thrown during performResize():
    Assertion failed:
    file:///home/laslo/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/overlay.dart:720:12
    constraints.biggest.isFinite
    is not true

The relevant error-causing widget was:
Navigator-[LabeledGlobalKey#c12c1]
file:///home/laslo/Development/website/lib/helpers/local_navigator.dart:5:31

When the exception was thrown, this was the stack:
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49 throw
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/widgets/overlay.dart 720:23 computeDryLayout
packages/flutter/src/rendering/box.dart 2332:12 performResize
packages/flutter/src/rendering/object.dart 1758:9 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/shifted_box.dart 233:5 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/layout_helper.dart 54:10 layoutChild
packages/flutter/src/rendering/flex.dart 896:45 [_computeSizes]
packages/flutter/src/rendering/flex.dart 931:32 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/layout_helper.dart 54:10 layoutChild
packages/flutter/src/rendering/flex.dart 829:43 [_computeSizes]
packages/flutter/src/rendering/flex.dart 931:32 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/widgets/layout_builder.dart 362:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/custom_layout.dart 171:10 layoutChild
packages/flutter/src/material/scaffold.dart 937:7 performLayout
packages/flutter/src/rendering/custom_layout.dart 240:7 [_callPerformLayout]
packages/flutter/src/rendering/custom_layout.dart 404:14 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/proxy_box.dart 1369:11 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/proxy_box.dart 3370:13 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/widgets/overlay.dart 743:14 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/proxy_box.dart 116:7 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/view.dart 153:7 performLayout
packages/flutter/src/rendering/object.dart 1636:7 [_layoutWithoutResize]
packages/flutter/src/rendering/object.dart 881:17 flushLayout
packages/flutter/src/rendering/binding.dart 462:19 drawFrame
packages/flutter/src/widgets/binding.dart 876:13 drawFrame
packages/flutter/src/rendering/binding.dart 328:5 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1144:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1082:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 865:7
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19 internalCallback

The following RenderObject was being processed when the exception was fired: _RenderTheatre#f361e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
creator: _Theatre โ† Overlay-[LabeledGlobalKey#33f5c] โ† UnmanagedRestorationScope โ†
_FocusMarker โ† Semantics โ† FocusScope โ† AbsorbPointer โ† Listener โ† HeroControllerScope โ†
Navigator-[LabeledGlobalKey#c12c1] โ† ColoredBox โ† Padding โ† โ‹ฏ
parentData: (can use size)
constraints: BoxConstraints(w=853.6, 0.0<=h<=Infinity)
size: MISSING
skipCount: 0
textDirection: ltr
This RenderObject had the following descendants (showing up to depth 5):
onstage 1: RenderIgnorePointer#f3ffd NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderBlockSemantics#34b3d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderExcludeSemantics#2164b NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderSemanticsGestureHandler#7397d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPointerListener#1876c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
onstage 2: RenderSemanticsAnnotations#ac7bc NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderOffstage#457cb NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderSemanticsAnnotations#3a33e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderRepaintBoundary#ec262 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderFractionalTranslation#87cf9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
no offstage children
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•`

error with side_menu.dart code

Hey, I have some issues with the side_menu.dart. I get the errors:

2 positional argument(s) expected, but 0 found - Location: side_menu.dart:53
The named parameter 'itemName' isn't defined - Location side_menu.dart:54
The named parameter 'onTap' isn't defined - Location side_menu.dart:55

You can check my github for the code. I hope u can help me, because I don't really know why I get this errors. I mean I have defined them, I haven't done much different than you in the tutorial.

I really hope u can help me.

Side menu errors

Hi, I'm having problems with the side menu, I followed what you did in the video and even checked the files, but the error remains...

image

I'm going to upload the files in my side_menu branch, if you can help me, thank you very much.

https://github.com/SFV-CORE/web_dashboard/tree/side_menu

I made some changes for the project to run, maybe it's the SDK version, but a lot of codes you made need to be changed, I hope you can help me.

MenuController is not found

hey guys, kindly help me out with this after creating menu I've came across this issue,

"MenuController" not found. You need to call "Get.put(MenuController())" or "Get.lazyPut(()=>MenuController())"
The relevant error-causing widget was
HorizontalMenuItem HorizontalMenuItem:file:///D:/BitEx/BitEx%20Web%20App/bitex/lib/widgets/side_menu_item.dart:17:11

Question: Menucontroller() error

I'm trying to follow your guide on skillshare, but i have some error i don't know how to resolve, following your code i was getting a null error so i started to fix it to run without disabling the null-safe mode as you can see on the repo: https://github.com/dabes/starter_flutter . but now i got this error and don't know how to proceed, if you could help me?
image

Error right at the beginning (getX-turtorial) "Error: Type 'CounterController' not found"

Hey,

I am trying to learn flutter from your video, but right at the beginning I get this errors:
(in the getX tutorial)

this is a screenshot of the error message

lib/screens/home.dart:6:9: Error: Type 'CounterController' not found.
  final CounterController counterController = Get.put(CounterController());
        ^^^^^^^^^^^^^^^^^
lib/screens/home.dart:6:9: Error: 'CounterController' isn't a type.
  final CounterController counterController = Get.put(CounterController());
        ^^^^^^^^^^^^^^^^^
lib/screens/home.dart:6:55: Error: Method not found: 'CounterController'.
  final CounterController counterController = Get.put(CounterController());
                                                      ^^^^^^^^^^^^^^^^^
lib/screens/home.dart:26:93: Error: Expected ';' after this.
      floatingActionButton: FloatingActionButton(onPressed: () {counterController.increment()},
                                                                                          ^

I have definied the class "CounterController" in the file "counterController.dart".

import 'package:get/get.dart';

class CounterController extends GetxController{
  var counter = 0.obs;

  void increment(){
    counter++;
  }
}

I did everything which is mentioned in the video till 23min.

Can u please check my code and help me? I think it's a simple beginner mistake, but I don't know how to fix it.
I hope u can help me.

https://github.com/MrFunkeyfreak/Flutter-Web-Course

Issue with GlobalKey on flutter SDK >= 2.12.0

Hi

I can't use GlobalKey as you do on flutter SDK >= 2.12.0

For example i got the error below on NavigationController :

Error: Method 'pushNamed' cannot be called on 'NavigatorState?' because it ispotentially null.

I add also to change the topNavigationBar function to a StatelessWidget class extending PreferredSizeWidget and use Scaffold.of(context) instead of scaffoldKey to make it work.

I have no idea how to fix this error on NavigationController.

Blank white screen

not sure this is relate to the project specifically, but i get a white blank screen every time i run the project, have tried everything i could find on the internet

bar chart errors can't be assigned to the parameter type 'List<Series<dynamic, String

Please help me with the bar chart error

when copy the bar chart code serieslist was showing error says

List<Series<dynamic, dynamic>> seriesList
package:flutter_application_1/widgets/bar_chart.dart

Unnecessary new keyword.dartunnecessary_new
The argument type 'List<Series<dynamic, dynamic>>' can't be assigned to the parameter type 'List<Series<dynamic, String*>>'

image

please check my code
https://github.com/hostusservices/flutter_dashboard.git

Duplicate GlobalKey

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:

  • [LabeledGlobalKey#bc309]
    This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.

/C:/Android/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.10.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter 'body1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Android/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. color ??= Theme.of(context).textTheme.body1.color;

I just downloaded and tried to run the project but when I try to launch it I get the following error message:

/C:/Android/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.10.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter       
'body1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/Android/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
      color ??= Theme.of(context).textTheme.body1.color;

It seems there is no other error messages in the project and it only can't be launched.

Having problem inside the layout file

lib/layout.dart:17:29: Error: Required named parameter 'mediumScreen' must be provided.
body: ResponsiveWidget(largeScreen:LargeScreen(), smallScreen:SmallScreen(),),
^
lib/helpers/responsiveness.dart:14:9: Context: Found this candidate, but the arguments don't match.
const ResponsiveWidget(
^^^^^^^^^^^^^^^^
lib/helpers/responsiveness.dart:43:16: Warning: Operand of null-aware operation '??' has type
'Widget' which excludes null.

  • 'Widget' is from 'package:flutter/src/widgets/framework.dart'
    ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
    return mediumScreen ?? largeScreen;
    ^
    lib/helpers/responsiveness.dart:46:16: Warning: Operand of null-aware operation '??' has type
    'Widget' which excludes null.
  • 'Widget' is from 'package:flutter/src/widgets/framework.dart'
    ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
    return smallScreen ?? largeScreen;

Error while running the app

WKS-101+Hp@WKS-101 MINGW64 /e/works/flutter/flutter-web-dashboard-template (main)
$ flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.10.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter 'body1' isn't defined for the class
'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
    color ??= Theme.of(context).textTheme.body1.color;
    ^^^^^
    Waiting for connection from debug service on Chrome... 19.6s
    Failed to compile application.

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[โˆš] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19042.1165], locale en-US)
[โˆš] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[โˆš] Chrome - develop for the web
[โˆš] Android Studio (version 2020.3)
[โˆš] VS Code, 64-bit edition (version 1.60.0)
[โˆš] Connected device (2 available)

โ€ข No issues found!

Multiple local navigator

Hello,

I followed your course, which was very good thank you! However, I have a question regarding multiple local navigators.

The functionality I`m trying to achive is the following:
1). User by default is navigated to the Login page (1), provides some data and presses the button
2). User is navigated to Login page (2), provides some data and presses the button
3). User is navigated to the home page.

I'm not quite sure to achive this with 2 local navigators... maybe you could assist me on that?

Cannot read the properties of Null (reading isHovering)

``Hello Santos Enoque, hope you are doing well and thank you so much for such a nice flutter course for free actually i am following your flutter crash course and i don't no where i go wrong, right now i am getting an error

Cannot read the properties of Null (reading isHovering)

here is my code

HorizontalMenuItem:

 `import 'package:flutter/material.dart';
 import 'package:get/get.dart';
 import 'package:web/constants/style.dart';
 import 'package:web/controller/menu_controller.dart';

 import 'custom_text.dart';

 class HorizontalMenuItem extends StatelessWidget {
   final String itemName;
   final Function onTap;
   const HorizontalMenuItem({Key key, this.itemName, this.onTap})
       : super(key: key);

  @override
  Widget build(BuildContext context) {
    double _width = MediaQuery.of(context).size.width;

return InkWell(
    onTap: onTap,
    onHover: (value) {
      value
          ? MenuController.instance.onHover(itemName)
          : MenuController.instance.onHover("not hovering");
    },
    child: Obx(() => Container(
          color: MenuController.instance.isHovering(itemName)
              ? lightgrey.withOpacity(.1)
              : Colors.transparent,
          child: Row(
            children: [
              Visibility(
                visible: MenuController.instance.isHovering(itemName) ||
                    MenuController.instance.isActive(itemName),
                maintainSize: true,
                maintainAnimation: true,
                maintainState: true,
                child: Container(
                  width: 6,
                  height: 40,
                  color: dark,
                ),
              ),
              SizedBox(width: _width / 88),
              Padding(
                padding: const EdgeInsets.all(16),
                child: MenuController.instance.returnIconFor(itemName),
              ),
              if (!MenuController.instance.isActive(itemName))
                Flexible(
                    child: CustomText(
                  text: itemName,
                  color: MenuController.instance.isHovering(itemName)
                      ? dark
                      : lightgrey,
                ))
              else
                Flexible(
                    child: CustomText(
                  text: itemName,
                  color: dark,
                  size: 18,
                  weight: FontWeight.bold,
                ))
            ],
          ),
        ))); }}`

Menu_Controller:

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:web/constants/style.dart';
import 'package:web/routing/Routes.dart';

class MenuController extends GetxController {
  static MenuController instance = Get.find();
  var activeItem = OverViewPageRoute.obs;

  var hoverItem = "".obs;

  changeActiveItemTo(String itemName) {
    activeItem.value = itemName;
  }

  onHover(String itemName) {
    if (!isActive(itemName)) hoverItem.value = itemName;
  }

  isHovering(String itemName) => hoverItem.value == itemName;

  isActive(String itemName) => activeItem.value == itemName;

  Widget returnIconFor(String itemName) {
    switch (itemName) {
      case OverViewPageRoute:
        return _customIcon(Icons.trending_up, itemName);
      case DriverPageRoute:
        return _customIcon(Icons.drive_eta, itemName);
      case ClientsPageRoute:
        return _customIcon(Icons.people_alt_outlined, itemName);
      case AuthenticationPageRoute:
        return _customIcon(Icons.exit_to_app, itemName);
      default:
        return _customIcon(Icons.exit_to_app, itemName);
    }
  }

  Widget _customIcon(IconData icon, String itemName) {
    if (isActive(itemName)) return Icon(icon, size: 22, color: dark);

    return Icon(
      icon,
      color: isHovering(itemName) ? dark : lightgrey,
    );
  }
}

flutter error

Kindly look into this code and please highlight the MISTAKES. Should be thankful to you.

final Function onTap

Hi there,

There is an error when you are adding variables in the classes horizontal_menu_item, and menu_item. The variable defined is "final Function onTap"

In the InkWell(), there is an error on the parameter onTap : onTap.

The defined error is: "argument type 'Function' can't be assigned to the parameter type 'void Function()?'."

The solution is changing the type of the variable from "final Function onTap" to "final VoidCallback() onTap"

Thank you for everything so far, really appreciated!!

Errors after apply url navigation

Good afternoon, after applying the url navigation changes, I noticed some problems.

When I click login on the authentication page, it looks like this:
image
And when I started the site, it asked me to put the "/" in the "not-found", and I did, but the page doesn't work...

I looked in your repository and the files are the same.

Sometimes an error of multiple use of GlobalKey appears, but I don't know how to solve it either...

Would you help me?

The Error:
image

The code will be in my Github Repository

Local Navigator Chapter seems outdated

I was just following along the YT-Tutorial and got stuck at the chapter starting here

  1. NavigationController
    return navigatorKey.currentState.pushNamed(routeName); -> pushNamed not accepted
    goBack() => navigatorKey.currentState.pop(); ->pop not accepted

Thanks a ton!

error to run code with debug

hi, i have this error whene i run the program...what can i do?

` ^^^^^
color ??= Theme.of(context).textTheme.body1!.color;
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/src/flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    /C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/charts_flutter-0.11.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

Failed to compile application.
`

MenuController Error

Expected a value of type MenuController' (in package:flutter_web_dashboard/controllers/menu_controller.dart), but got one of type 'MenuController' (in package:flutter/src/material/menu_anchor.dart)

See also: https://flutter.dev/docs/testing/errors

Screenshot 2023-02-21 at 3 33 06 PM

can anyone help me with this issue?

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.