如何在Flutter中在文本字符串中使用引号? [英] How to use quotation marks in a text string in Flutter?

查看:382
本文介绍了如何在Flutter中在文本字符串中使用引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何在do里面的文本中写引号:

How do I write quotation marks in a text inside do:

例如: child:Text(好一天,我从不好的心情是星期一),

Container(      
    color: Colors.white,
    height: 50,
    width: 390,
    margin: EdgeInsets.only(left: 15.0, top: 15.0, right: 15.0, bottom: 5.0 ),
    alignment: Alignment.topRight,
    child: Text ("2 لا تتطلب النية قول أي شيء بصوت عال، ولكن التركيز على عبارة "بسم الله".", textDirection: TextDirection.rtl,
      style: TextStyle(
        decoration: TextDecoration.none,
        fontSize: 25.0,
        fontFamily: 'Poppins',
        fontWeight: FontWeight.w600,
        color: Colors.black,
      ),),

  ),


推荐答案

child:  Text ('One fine day I woke up from" Bad Mood "was Monday'),

参考: Flutter / Dart中单引号和双引号之间的差异

这篇关于如何在Flutter中在文本字符串中使用引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆