gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Widget writeContent( String UtilPopular, String mypopularMenu, ) { Color textColor =…
- User
Widget writeContent( String UtilPopular, String mypopularMenu, ) { Color textColor = Color(0xFF969696); Color circleColor = Color(0xFFF2F3F7); bool isSelected = popularMenu == mypopularMenu;
return Column( children: <Widget>[ RawMaterialButton( onPressed: () { setState(() { popularMenu = mypopularMenu; collectionState = null; getDocuments(); }); }, shape: CircleBorder(), child: Container( // width: width, // height: height, decoration: BoxDecoration( shape: BoxShape.circle, color: circleColor, ), child: Center( child: Text( UtilPopular, style: TextStyle( color: isSelected ? Colors.black : textColor, fontFamily: 'Roboto-Light.ttf', // fontSize: customFontSize, ), ), ), ), ), ], ); } mau text dam hon va bo BoxDecoration - Assistant
Widget writeContent( String UtilPopular, String myPopularMenu, bool isSelected, ) { Color textColor = isSelected ? Colors.black : Color(0xFF969696);
return Column( children: <Widget>[ RawMaterialButton( onPressed: () { setState(() { popularMenu = myPopularMenu; collectionState = null; getDocuments(); }); }, shape: CircleBorder(), child: Container( decoration: BoxDecoration( shape: BoxShape.circle, color: isSelected ? Colors.black : Color(0xFFF2F3F7), ), child: Center( child: Text( UtilPopular, style: TextStyle( color: textColor, fontFamily: 'Roboto-Light.ttf', ), ), ), ), ), ], ); }