GithubHelp home page GithubHelp logo

abuanwar072 / flutter-responsive-admin-panel-or-dashboard Goto Github PK

View Code? Open in Web Editor NEW
6.4K 156.0 1.8K 20.97 MB

Responsive Admin Panel or Dashboard using Flutter

Home Page: https://youtu.be/_uOgXpEHNbc

License: MIT License

Kotlin 0.18% Ruby 3.88% Swift 1.85% Objective-C 0.05% Dart 41.99% HTML 9.58% CMake 11.94% C++ 29.47% C 1.06%
flutter web app dashboard dashboard-templates

flutter-responsive-admin-panel-or-dashboard's Introduction

Flutter Responsive Admin/Dashboard Template

I've created a step-by-step video tutorial to guide you through the process of building this responsive admin panel. Watch it on YouTube

Flutter V2.* has officially introduced web support on its stable branch. Today, I'm excited to present a Flutter-based Admin panel, often referred to as a dashboard UI. This Flutter dashboard template, which you can find on GitHub, is a comprehensive solution for your app's backend needs. It comes with a wide array of features including charts, tables, and neatly designed info cards.

This flutter dashboard library is versatile; it's tailored to work seamlessly on the Web, macOS app, tablets, and both Android and iOS phones. The principle 'code once, run everywhere' truly comes to life with this.

Packages we are using:

Fonts

Responsive Admin Panel or Dashboard Final UI Preview

Preview

App UI

flutter-responsive-admin-panel-or-dashboard's People

Contributors

abdulmominsakib avatar abuanwar072 avatar ajumalp avatar akcauser avatar allcontributors[bot] avatar itsahmed-dev avatar rounaktadvi avatar simon1tan avatar tm-sanjay avatar yakoubtrk 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  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

flutter-responsive-admin-panel-or-dashboard's Issues

Add Login screen

Everything is awesome here,
but we need Admin login screen, no logic is required, just awesome UI,

any quick suggestions for login screen code in the comments section is appreciated (please try to add a screenshot if you could)

named route

How can ı add named route to pages(for example instagram website has side menu too but when you go to messages url goes to instagram.com/direct/messages ı want to do it like that in my project. I looked around internet but couldn't find it. )

ChromeProxyService Error

I am having the following error message when I try to use Chrome web browser.

ChromeProxyService: Failed to evaluate expression 'ServicesBinding': InternalError: Expression evaluation in async frames is not supported. No frame with index 14..
ChromeProxyService: Failed to evaluate expression 'ui.PlatformDispatcher.instance': InternalError: Expression evaluation in async frames is not supported. No frame with index 14..
ChromeProxyService: Failed to evaluate expression 'message': InternalError: Expression evaluation in async frames is not supported. No frame with index 14..

I think it has to do with the "completer.complete(reply);" code in the "bining.dart" file.

binding error sc

Screen abnormality when text is enlarged by clicking the text enlargement button in the browser

Describe the bug
A clear and concise description of what the bug is.
=> Screen abnormality when text is enlarged by clicking the text enlargement button in the browser.
This symptom only appears when running locally but it's ok on a demo site(https://abuanwar072.github.io/Flutter-Responsive-Admin-Panel-or-Dashboard/#/).
How do I make it work like the demo site even when running locally? Is it a build option issue?

To Reproduce
Steps to reproduce the behavior:

  1. run this application with Intellij in locally
  2. Click the text enlargement button in the browser
  3. It works abnormally as in the screenshot below.

Expected behavior
How do I make it work like the demo site even when running locally? Is it a build option issue?

Screenshots
If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

  • OS: window10
  • Browser [chrome]
  • Version [95.0.4638.69]

Additional context
Add any other context about the problem here.

cannot run this code with flutter 3.3.7

flutter run -d chrome

══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
RenderFlex children have non-zero flex but incoming height constraints are unbounded.
When a column is in a parent that does not provide a finite height constraint, for example if it is
in a vertical scrollable, it will try to shrink-wrap its children along the vertical axis. Setting a
flex on a child (e.g. using Expanded) indicates that the child is to expand to fill the remaining
space in the vertical direction.
These two directives are mutually exclusive. If a parent is to shrink-wrap its child, the child
cannot simultaneously expand to fit its parent.
Consider setting mainAxisSize to MainAxisSize.min and using FlexFit.loose fits for the flexible
children (using Flexible rather than Expanded). This will allow the flexible children to size
themselves to less than the infinite remaining space they would otherwise be forced to take, and
then will cause the RenderFlex to shrink-wrap the children rather than expanding to fit the maximum
constraints provided by the parent.
If this message did not help you determine the problem, consider using debugDumpRenderTree():
https://flutter.dev/debugging/#rendering-layer
http://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
The affected RenderFlex is:
RenderFlex#815cd relayoutBoundary=up33 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE(creator: Column ←
RepaintBoundary ← CustomPaint-[GlobalKey#62255] ← MouseRegion ← Listener ← _GestureSemantics ← RawGestureDetector ←
RepaintBoundary ← NotificationListener ← NotificationListener ←
_MaterialScrollbar ← Scrollbar ← ⋯, parentData: (can use size), constraints: BoxConstraints(w=582.3, 0.0<=h<=Infinity),
size: MISSING, direction: vertical, mainAxisAlignment: start, mainAxisSize: min, crossAxisAlignment: center,
verticalDirection: down)
The creator information is set to:
Column ← RepaintBoundary ← CustomPaint-[GlobalKey#62255] ← MouseRegion ← Listener ←
_GestureSemantics ← RawGestureDetector ← RepaintBoundary ←
NotificationListener ← NotificationListener ←
_MaterialScrollbar ← Scrollbar ← ⋯
The nearest ancestor providing an unbounded width constraint is: _RenderSingleChildViewport#7008e relayoutBoundary=up16
NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
needs compositing
creator: _SingleChildViewport ← IgnorePointer-[GlobalKey#9d247] ← Semantics ← Listener ←
_GestureSemantics ← RawGestureDetector-[LabeledGlobalKey#9c75f] ←
Listener ← _ScrollableScope ← _ScrollSemantics-[GlobalKey#975b4] ←
NotificationListener ← RepaintBoundary ← CustomPaint-[GlobalKey#81613]
← ⋯
parentData: (can use size)
constraints: BoxConstraints(w=908.0, 0.0<=h<=953.0)
size: MISSING
offset: Offset(0.0, -0.0)

The CPU usage is high

The compiled Windows version runs programs that use more than 20% of the CPU resources on Windows 10 systems。

MenuController Build Errors

Describe the bug
MenuController Build Errors

One example

The name 'MenuController' is defined in the libraries 'package:admin/controllers/MenuController.dart' and 'package:flutter/src/material/menu_anchor.dart (via package:flutter/material.dart)'.
Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.

See screenshot of other errors.

To Reproduce

  • flutter run
  • Chrome
  • Error in terminal
Launching lib\main.dart on Chrome in debug mode...
lib/main.dart:28:34: Error: 'MenuController' is imported from both 'package:admin/controllers/MenuController.dart' and
'package:flutter/src/material/menu_anchor.dart'.
            create: (context) => MenuController(),
                                 ^^^^^^^^^^^^^^
lib/screens/main/main_screen.dart:12:43: Error: The getter 'scaffoldKey' isn't defined for the class 'MenuController'.
 - 'MenuController' is from 'package:flutter/src/material/menu_anchor.dart'
 ('../flutter/packages/flutter/lib/src/material/menu_anchor.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scaffoldKey'.
      key: context.read<MenuController>().scaffoldKey,
                                          ^^^^^^^^^^^
lib/screens/dashboard/components/header.dart:3:1: Error: 'MenuController' is imported from both
'package:admin/controllers/MenuController.dart' and 'package:flutter/src/material/menu_anchor.dart'.
import 'package:flutter/material.dart';
^^^^^^^^^^^^^^

Expected behavior
Clean Build/Run

Screenshots

image

Desktop (please complete the following information):

  • OS: Win 10
  • Browser Chrome
  • Version Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision b06b8b2710 (9 days ago) • 2023-01-23 16:55:55 -0800
    Engine • revision b24591ed32
    Tools • Dart 2.19.0 • DevTools 2.20.1

Additional context
I believe I didn't have this issue with a prior version of Flutter. I am new to this so I am not entirely sure, but I think its flutter 3.7 that is causing this?

data_table_2 : 2.3.3

Hello.

Is it possible to update to the last realease data_table_2 2.3.3 ?
I tried to add it but it have some issues and can't know where to solve :/ .

Thank you.
regards.

a little guidance on this small code in index.html please

this is my code....how to match it with latest version that is just release??

<title>4E Admin Panel</title>

<script type="module"> // Import the functions you need from the SDKs you need import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.6/firebase-app.js"; import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.6.6/firebase-analytics.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {

//removed for privacy
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
</script> <script> if ('serviceWorker' in navigator) { window.addEventListener('flutter-first-frame', function () { navigator.serviceWorker.register('flutter_service_worker.js'); }); } </script> <script src="main.dart.js" type="application/javascript"></script> <script src="https://www.gstatic.com/firebasejs/9.6.6/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/9.6.6/firebase-analytics.js"></script> <script src="https://www.gstatic.com/firebasejs/9.6.6/firebase-firestore.js"></script> <script src="https://www.gstatic.com/firebasejs/9.6.6/firebase-storage.js"></script>

Setup time

Hi,
What is estimated time it should take to integrate Admin panel into a new app project?
Eg. like 1 to two days: 8 to 12hrs?

Thankyou, looks cool.

Questions MenuAppController

How can I implement this to change the widgets on the screen, when clicking on the menus of the side_menu the intention is not to reload the page but to go removing and putting components while you look at the options, I don't know if I explain myself.

Work fine, but crash with navigation of widgets in MainScreen

Describe the bug
The bug occurs when trying to change the body widget or even when trying to navigate to a new screen.

It happens that when changing the Dashboard body widget for another body widget, for example Transactions, the site breaks and does not render correctly the Sidebar and Header area.

Here is a short video example of the problem:

To Reproduce
Steps to reproduce the behavior:

  1. Change widget of body Dashboard for any other with StreamBuilder or Navigator

Code of MainScreen

class MainScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      key: context.read<MenuController>().scaffoldKey,
      drawer: SideMenu(),
      body: SafeArea(
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            if (Responsive.isDesktop(context))
              Expanded(
                child: SideMenu(),
              ),
            Expanded(
              flex: 5,
              child: StreamBuilder<Widget>(
                stream: outGetWidget,
                builder: (context, w) {
                  if(w.connectionState == ConnectionState.waiting || w.data == null) return const Center(child: CircularProgressIndicator(),);
                  return w.data!;
                },
              ),
            ),
          ],
        ),
      ),
    );
  }
}

All other codes are original for the scripts, the bug is only i change the widget of body.

I tested several alternatives to try to fix this problem, but nothing went right.
How do I navigate multiple screens responsively?
Apparently it's only usable for a single screen.

Video for show the bug
https://youtu.be/y9DCPI628dc

need help ""RenderBox was not laid out"

I downloaded the zip and ran the project
It was good but then I added something in pubspec.yaml and then this error popup.

======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
Assertion failed: file:///H:/src/flutter/flutter/packages/flutter/lib/src/rendering/box.dart:2001:12
hasSize
"RenderBox was not laid out: RenderPointerListener#724c3 relayoutBoundary=up13 NEEDS-PAINT"

The relevant error-causing widget was:
SingleChildScrollView SingleChildScrollView:file:///H:/Flutter-Responsive-Admin-Panel-or-Dashboard-master/Flutter-Responsive-Admin-Panel-or-Dashboard-master/lib/screens/dashboard/dashboard_screen.dart:15:14
When the exception was thrown, this was the stack:
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/rendering/box.dart 2001:12 get size
packages/flutter/src/rendering/proxy_box.dart 121:14 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/custom_paint.dart 552:11 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/shifted_box.dart 249:5 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/layout_helper.dart 56:10 layoutChild
packages/flutter/src/rendering/flex.dart 903:45 [_computeSizes]
packages/flutter/src/rendering/flex.dart 938:32 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/shifted_box.dart 249:5 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/custom_layout.dart 171:10 layoutChild
packages/flutter/src/material/scaffold.dart 1055:7 performLayout
packages/flutter/src/rendering/custom_layout.dart 240:7 [_callPerformLayout]
packages/flutter/src/rendering/custom_layout.dart 410:14 performLayout
packages/flutter/src/rendering/object.dart 1973:7 [_layoutWithoutResize]
packages/flutter/src/rendering/object.dart 999:17 flushLayout
packages/flutter/src/rendering/binding.dart 513:19 drawFrame
packages/flutter/src/widgets/binding.dart 884:13 drawFrame
packages/flutter/src/rendering/binding.dart 378:5 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1175:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1104:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1015:5 [_handleDrawFrame]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1168:13 invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 219:5 invokeOnDrawFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/initialization.dart 195:45
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 334:14 _checkAndCall
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 339:39 dcall
The following RenderObject was being processed when the exception was fired: RenderSemanticsGestureHandler#c7b97 relayoutBoundary=up12 NEEDS-LAYOUT NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... behavior: opaque
... gestures:
RenderObject: RenderSemanticsGestureHandler#c7b97 relayoutBoundary=up12 NEEDS-LAYOUT NEEDS-PAINT
needs compositing
parentData: (can use size)
constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
size: MISSING
behavior: opaque
gestures:
... child: RenderPointerListener#724c3 relayoutBoundary=up13 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... behavior: opaque
... listeners: down, panZoomStart
... child: RenderSemanticsAnnotations#5f498 relayoutBoundary=up14 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... child: RenderIgnorePointer#2a10d relayoutBoundary=up15 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... ignoring: false
... ignoringSemantics: false
... child: _RenderSingleChildViewport#69f46 relayoutBoundary=up16 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... offset: Offset(0.0, -0.0)

======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
Assertion failed: file:///H:/src/flutter/flutter/packages/flutter/lib/src/rendering/box.dart:2001:12
hasSize
"RenderBox was not laid out: RenderSemanticsGestureHandler#c7b97 relayoutBoundary=up12 NEEDS-PAINT"

The relevant error-causing widget was:
SingleChildScrollView SingleChildScrollView:file:///H:/Flutter-Responsive-Admin-Panel-or-Dashboard-master/Flutter-Responsive-Admin-Panel-or-Dashboard-master/lib/screens/dashboard/dashboard_screen.dart:15:14
When the exception was thrown, this was the stack:
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/rendering/box.dart 2001:12 get size
packages/flutter/src/rendering/proxy_box.dart 121:14 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/custom_paint.dart 552:11 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/proxy_box.dart 120:7 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/shifted_box.dart 249:5 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/layout_helper.dart 56:10 layoutChild
packages/flutter/src/rendering/flex.dart 903:45 [_computeSizes]
packages/flutter/src/rendering/flex.dart 938:32 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/shifted_box.dart 249:5 performLayout
packages/flutter/src/rendering/object.dart 2135:7 layout
packages/flutter/src/rendering/box.dart 2418:11 layout
packages/flutter/src/rendering/custom_layout.dart 171:10 layoutChild
packages/flutter/src/material/scaffold.dart 1055:7 performLayout
packages/flutter/src/rendering/custom_layout.dart 240:7 [_callPerformLayout]
packages/flutter/src/rendering/custom_layout.dart 410:14 performLayout
packages/flutter/src/rendering/object.dart 1973:7 [_layoutWithoutResize]
packages/flutter/src/rendering/object.dart 999:17 flushLayout
packages/flutter/src/rendering/binding.dart 513:19 drawFrame
packages/flutter/src/widgets/binding.dart 884:13 drawFrame
packages/flutter/src/rendering/binding.dart 378:5 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1175:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1104:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1015:5 [_handleDrawFrame]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1168:13 invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 219:5 invokeOnDrawFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/initialization.dart 195:45
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 334:14 _checkAndCall
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 339:39 dcall
The following RenderObject was being processed when the exception was fired: RenderPointerListener#f1414 relayoutBoundary=up11 NEEDS-LAYOUT NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... behavior: deferToChild
... listeners: signal
RenderObject: RenderPointerListener#f1414 relayoutBoundary=up11 NEEDS-LAYOUT NEEDS-PAINT
needs compositing
parentData: (can use size)
constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
size: MISSING
behavior: deferToChild
listeners: signal
... child: RenderSemanticsGestureHandler#c7b97 relayoutBoundary=up12 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... behavior: opaque
... gestures:
... child: RenderPointerListener#724c3 relayoutBoundary=up13 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... behavior: opaque
... listeners: down, panZoomStart
... child: RenderSemanticsAnnotations#5f498 relayoutBoundary=up14 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... child: RenderIgnorePointer#2a10d relayoutBoundary=up15 NEEDS-PAINT
... needs compositing
... parentData: (can use size)
... constraints: BoxConstraints(w=1025.0, 0.0<=h<=594.0)
... size: MISSING
... ignoring: false
... ignoringSemantics: false

cannot run this code with flutter 3.0.5

Describe the bug
raise this exception

  creator: Align ← ListTileTheme ← DrawerController-[LabeledGlobalKey<DrawerControllerState>#a3ff9] ← MediaQuery ← LayoutId-[<_ScaffoldSlot.drawer>] ← CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ← AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#9cb2d ink renderer] ← NotificationListener<LayoutChangedNotification> ← PhysicalModel ← ⋯
  parentData: offset=Offset(0.0, 0.0); id=_ScaffoldSlot.drawer
  constraints: MISSING
  size: MISSING
  alignment: AlignmentDirectional.centerStart
  textDirection: ltr
  widthFactor: expand
  heightFactor: expand

License?

Thanks for sharing the code.

May I know the license of the code?

Appreciate if you could add a LICENSE file to the repo.

How drawer click works?

Hi!, I'm newer of flutter, I clone the whole project and can not find the code of drawer item click.

I want some working code to learn how drawer item click, can any body help me ?

that would be very help for me! THANKS!!!

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.