1
resposta

Desafio da aplicação do Text.rich no texo "Oié, mundo Flutter"

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        // Application name
        title: 'Flutter Stateful Clicker Counter',
        theme: ThemeData(
          // Application theme data, you can set the colors for the application as
          // you want
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
            body: Text.rich(TextSpan(
                text: 'Oie',
                style: TextStyle(fontWeight: FontWeight.bold),
                children: [
              TextSpan(
                  text: ', mundo Flutter',
                  style: TextStyle(fontWeight: FontWeight.normal))
            ]))));
  }
}
1 resposta

Fala Jupiter, de boa ?

tá certinho o que tu fez! espero que seja o primeiro de diversos apps que vc vai criar :)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software