LoginSignup
0
0

More than 1 year has passed since last update.

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

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