FLUTTER Tooltip Lightweight Operation Tips

Tooltip is a Widget inherited from StatefulWidget. It does not need to call up methods. When the user long presses Tooltip When the Widget is wrapped, the corresponding operation prompt will automatically pop up.

import'package:flutter/material.dart';


class ToolTipDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title:Text(
‘tool tips demo‘)),
body:Center(
child: Tooltip(
message:
‘Reminder: Unable to operate’,
child: Icon(Icons.all_inclusive),
),
)
);
}
}

import'package:flutter/material .dart';


class ToolTipDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title:Text(
‘tool tips demo‘)),
body:Center(
child: Tooltip(
message:
‘Reminder: Unable to operate’,
child: Icon(Icons.all_inclusive),
),
)
);
}
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2773 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.