0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

type 'FlexParentData' is not a subtype of type 'StackParentData' in type cast

0
Posted at

超簡単に説明すると子ウィジェットに一致する親ウィジェットがない場合に発生します。

OKな例

Stack( 
  children:[
    Positioned(
      child: Text("Hello ")
    )
  ]
)

NGな例

Stack( 
  children:[
    Positioned(
      child: Text("Hello ")
    )
  ]
)
↓これ
Positioned(
  child: Text("Hello ")
)

PositionedはStackの中で使うものなので、外では使えませんよって言うことでした

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?