You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this should overflow as I've passed in a scroll Controller and there is technically space both before and after. If anything, this looks weird in where it decides to stop drawing. Are those the constaints?
classTooltipAreaExamplePageextendsStatefulWidget {
constTooltipAreaExamplePage({Key? key}) :super(key: key);
@overrideState<TooltipAreaExamplePage> createState() =>_TooltipAreaExamplePageState();
}
class_TooltipAreaExamplePageStateextendsState<TooltipAreaExamplePage> {
final titleController =TextEditingController(
text:'Lorem ipsum dolor',
);
final descriptionController =TextEditingController(
text:'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ''eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ''ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut ',
);
final scrollController =ScrollController();
@overridevoiddispose() {
titleController.dispose();
descriptionController.dispose();
scrollController.dispose();
super.dispose();
}
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
appBar:AppBar(title:constText('It goes under me')),
body:JustTheTooltipArea(
builder: (context, tooltip, scrim) {
returnStack(
fit:StackFit.passthrough,
children: [
ListView(
controller: scrollController,
children:List.generate(
40,
(index) {
if (index ==15) {
returnJustTheTooltipEntry(
scrollController: scrollController,
isModal:true,
tailLength:20.0,
preferredDirection:AxisDirection.right,
margin:constEdgeInsets.all(16.0),
child:constMaterial(
color:Colors.blue,
shape:CircleBorder(),
elevation:4.0,
child:Padding(
padding:EdgeInsets.all(8.0),
child:Icon(
Icons.touch_app,
color:Colors.white,
),
),
),
content:Column(
mainAxisSize:MainAxisSize.min,
children: [
TextField(
maxLines:null,
keyboardType:TextInputType.text,
textCapitalization:TextCapitalization.sentences,
style:Theme.of(context).textTheme.headline6,
controller: titleController,
),
constSizedBox(height:12.0),
TextField(
controller: descriptionController,
maxLines:null,
keyboardType:TextInputType.multiline,
textCapitalization:TextCapitalization.sentences,
style:Theme.of(context).textTheme.subtitle1,
),
constSizedBox(height:16.0),
Row(
mainAxisAlignment:MainAxisAlignment.spaceAround,
children: [
Expanded(
child:OutlinedButton(
style:OutlinedButton.styleFrom(
shape:constStadiumBorder(),
),
onPressed: () {},
child:constText('exercises'),
),
),
constSizedBox(width:16.0),
Expanded(
child:OutlinedButton(
style:OutlinedButton.styleFrom(
shape:constStadiumBorder(),
),
onPressed: () {},
child:constText('course'),
),
),
],
)
],
),
);
}
returnListTile(title:Text('Item $index'));
},
),
),
if (scrim !=null) scrim,
if (tooltip !=null) tooltip,
],
);
},
),
);
}
}
The text was updated successfully, but these errors were encountered:
I don't think this should overflow as I've passed in a scroll Controller and there is technically space both before and after. If anything, this looks weird in where it decides to stop drawing. Are those the constaints?
The text was updated successfully, but these errors were encountered: