flutter - Flutter 如何在文本字符串中使用引号?

标签 flutter dart

如何在文本里面写引号做:

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

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'),

引用:Difference between single and double quotes in Flutter/Dart

关于flutter - Flutter 如何在文本字符串中使用引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58023888/

相关文章:

dart - 错误 : '_elements.contains(element)' : is not true

android - 在 flutter 中导入下拉依赖项 : ^ 1. 0.2 时出现问题

flutter - 如何使用 Flutter 在 Android 上强制 iOS 滚动行为?

dart - 如何在 Dart 中发送大的 POST 数据

flutter - 如何在 flutter 中更改 checkBoxListTile 中的复选框颜色?

xml - 在 Dart 中读取 XML 文件

flutter 'owner!._debugCurrentBuildTarget == this' : is not true. #87

dart - 那么Dart等待移除吗?

android - 如何在一个 slider 上添加多个 slider ? # flutter

android - TextField controlled controller.addListener(() 在使用 controller.clear 后被多次调用