skip to Main Content

Flutter – Centering a widget on the screen

i am trying to center a circular avatar on the SCREEN and next to it an icon button. Row( mainAxisAlignment: MainAxisAlignment.center, children: [ CircleAvatar( radius: 35, backgroundColor: Colors.grey[400], backgroundImage: NetworkImage(_userInfo!.profileImageUrl), ), IconButton(onPressed: editProfile, icon: Icon(Icons.edit),), ], ), i tried using…

VIEW QUESTION

Flutter : force createState() for inherited StatefulWidget

Edit: solved by adding a unique key to the widget constructor call: Edit 2: as Randal Schwartz mentioned -> this is not a solution. Issue NOT solved and still open. @override SearchTermInput get searchTermInput => SearchTermInputOneString( key: UniqueKey(), currentSearchTermInputContent: widgetRef.read(apiEndpointUniversalSearchTermInputContentProvider),…

VIEW QUESTION
Back To Top
Search