**이 페이지에서 알 수 있는 내용 このページからわかること

- RichText
	- TextSpan
		- TextStyle
		- TapGestureRecognizer()
- cascade notation**	

main.dart

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            RichText(
              text:  TextSpan(
                  style: const TextStyle(
                    color: Colors.black,
                  ),
                  children: [
                    const TextSpan(text: 'You have '),
                    TextSpan(
                      text: 'pushed ',
                      style: TextStyle(
                        color: Colors.red,
                        fontWeight: FontWeight.bold,
                        fontSize: 20,
                      ),
                      recognizer: TapGestureRecognizer()
                      ..onTap = () { //  .. cascade notation 
                        print('pushedがタップされました');
                      }
                    ),
                    const TextSpan(
                      text: 'button this many times',
                      style: TextStyle(
                        color: Colors.green,
                      ),
                    ),
                  ]),
            ),
          ],
        ),
      ),
    );
  }
}

Untitled

TextSpan

TextStyle

TapGestureRecognizer()

cascade notation