You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import ' package:akuCommunity/model/manager/suggestion_or_complain_model.dart ' ;
import ' package:akuCommunity/utils/headers.dart ' ;
import ' package:common_utils/common_utils.dart ' ;
import ' package:flutter/material.dart ' ;
import ' package:velocity_x/velocity_x.dart ' ;
class AdviceCard extends StatefulWidget {
final SuggestionOrComplainModel model ;
AdviceCard ( { Key key , this . model } ) : super ( key: key ) ;
@ override
_AdviceCardState createState ( ) = > _AdviceCardState ( ) ;
}
class _AdviceCardState extends State < AdviceCard > {
///1.未反馈, 2.反馈中, 3.已反馈
String get statusValue = > {
1 : ' 未反馈 ' ,
2 : ' 反馈中 ' ,
3 : ' 已反馈 ' ,
} [ widget . model . status ] ;
@ override
Widget build ( BuildContext context ) {
return MaterialButton (
elevation: 0 ,
padding: EdgeInsets . all ( 24. w ) ,
color: Colors . white ,
onPressed: ( ) { } ,
shape: RoundedRectangleBorder (
borderRadius: BorderRadius . circular ( 8. w ) ,
) ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
DateUtil . formatDate (
widget . model . createDate ,
format: ' yyyy年MM月dd日 ' ,
) . text . size ( 32. sp ) . black . bold . make ( ) ,
statusValue . text . size ( 24. sp ) . color ( Color ( 0xFFFF8200 ) ) . make ( ) ,
] ,
) ,
Divider (
height: 50. w ,
thickness: 1. w ,
color: Color ( 0xFFE8E8E8 ) ,
) ,
widget . model . content . text . size ( 28. w ) . black . make ( ) ,
] ,
) ,
) ;
}
}