| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import 'package:flutter/material.dart';
- import 'package:jmrh/constant/styles.dart';
- class ItemQa extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return InkWell(
- child: Container(
- padding: EdgeInsets.all(16),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Row(
- children: [
- Container(
- width: 18,
- height: 18,
- alignment: Alignment.center,
- decoration: BoxDecoration(color: COLOR_PRIMARY, borderRadius: BorderRadius.all(Radius.circular(2))),
- child: Text('问', style: TextStyle(color: Colors.white, fontSize: 11)),
- ),
- Expanded(
- child: Container(
- margin: EdgeInsets.only(left: 5),
- child: Text(
- '李克强考察南昌航空城为何强调一个李克强考察南昌航空城为何强调一个李克强考察南昌航空城为何强调一个“捧”字?',
- style: TextStyle(color: COLOR_TEXT_1, fontSize: 14, fontWeight: FontWeight.bold),
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- ),
- )
- ],
- ),
- Container(
- margin: EdgeInsets.only(top: 10),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Container(
- width: 18,
- height: 18,
- alignment: Alignment.center,
- decoration:
- BoxDecoration(color: Color(0xFFFFC23B), borderRadius: BorderRadius.all(Radius.circular(2))),
- child: Text('答', style: TextStyle(color: Colors.white, fontSize: 11)),
- ),
- Expanded(
- child: Container(
- margin: EdgeInsets.only(left: 5),
- child: RichText(
- maxLines: 2,
- text: TextSpan(
- style: TextStyle(color: COLOR_TEXT_1, fontSize: 13, height: 1.4),
- text: '李克强11月15日上午考察南昌航空城,在首款国产大飞机C919装配厂勉励员工:“安全舒适的大飞安全舒适的大飞安全舒适的大飞…',
- children: [
- TextSpan(text: '查看详情', style: TextStyle(color: COLOR_PRIMARY, fontWeight: FontWeight.bold))
- ],
- ),
- ),
- ),
- )
- ],
- ),
- )
- ],
- ),
- ),
- onTap: () {
- Navigator.of(context).pushNamed('/qaDetail');
- },
- );
- }
- }
|