为什么Flutter中的文本小部件不显示字母和数字组合

时间:2020-10-30 13:13:58

标签: flutter text-widget

我想在浮动窗口小部件文本中显示文本“ ellen 112@yahoo.com”,但出现的只是ellen @ yahoo.com。如果文本字母与出现在电子邮件中的数字(如email112mail)结合使用,则会发生相同的情况。发生了什么事?

这是代码

Positioned(
            top: 180,
            left: 40,
            right:40,
                   child:
                     Card(
                       color: Colors.yellow,
                       child: Column(
                         children: <Widget>[
                           ListView(
                             shrinkWrap: true,
                             children: <Widget>[
                               ListTile(
                                 leading: Icon(Icons.mail, color:  Color (0xff00a8f3) ,),
                                 title: Text("Email112mail",style: TextStyle(
                                   color: Color (0xff00a8f3),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                                 subtitle: Text('ellen112@yahoo.com',style: TextStyle(
                                   color: Color (0xff538f9d),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                               ),
                               ListTile(
                                 leading: Icon(Icons.phone_android,color:  Color (0xff00a8f3) ,),
                                 title: Text("Mobile",style: TextStyle(
                                   color: Color (0xff00a8f3),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                                 subtitle: Text(mobile,style: TextStyle(
                                   color: Color (0xff538f9d),
                                   fontFamily: 'FRESH_TEA-DEMO',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                               ),
                               ListTile(
                                 leading: Icon(Icons.phone,color:  Color (0xff00a8f3) ,),
                                 title: Text("Phone",style: TextStyle(
                                   color: Color (0xff00a8f3),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                                 subtitle: Text(phone,style: TextStyle(
                                   color: Color (0xff538f9d),
                                   fontFamily: 'FRESH_TEA-DEMO',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                               ),
                               ListTile(
                                 leading: Icon(Icons.cake,color:  Color (0xff00a8f3) ,),
                                 title: Text("Birthdate",style: TextStyle(
                                   color: Color (0xff00a8f3),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                                 subtitle: Text(birthDate,style: TextStyle(
                                   color: Color (0xff538f9d),
                                   fontFamily: 'FRESH_TEA-DEMO',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                               ),
                               ListTile(
                                 leading: Icon(Icons.favorite,color:  Color (0xff00a8f3) ,),
                                 title: Text("Favorite",style: TextStyle(
                                   color: Color (0xff00a8f3),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                                 subtitle: Text(favorite,style: TextStyle(
                                   color: Color (0xff538f9d),
                                   fontFamily: 'Hello Christmas',
                                   fontWeight: FontWeight.w900,
                                   fontSize: 14,
                                 ),),
                               ),
                             ],
                           )
                         ],
                       ),
                     ),
        )

这是输出

Output screen see what I marked with the red box

0 个答案:

没有答案