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

cannot run this code with flutter 3.0.5 #51

Open
guchengxi1994 opened this issue Jul 18, 2022 · 2 comments
Open

cannot run this code with flutter 3.0.5 #51

guchengxi1994 opened this issue Jul 18, 2022 · 2 comments

Comments

@guchengxi1994
Copy link

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
@shanliangdeYWJ
Copy link

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

This may be the problem of data_tabel2, modify recent_ Files file, the height of sizedbox outside datatable2, maybe height: 400


          SizedBox(
            width: double.infinity,
            height: 400,  // <-------------------- add this
            child: DataTable2(
              columnSpacing: defaultPadding,
              minWidth: 600,
              columns: [
                DataColumn(
                  label: Text("File Name"),
                ),
                DataColumn(
                  label: Text("Date"),
                ),
                DataColumn(
                  label: Text("Size"),
                ),
              ],
              rows: List.generate(
                demoRecentFiles.length,
                (index) => recentFileDataRow(demoRecentFiles[index]),
              ),
            ),
          ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@guchengxi1994 @shanliangdeYWJ and others