Untitled

Views: 712

Anonymous   3 years ago   Never
Text   1.78 KB   Public
Crumb Tree
  • Untitled
Highlight mode ON

Click on the lines you want to highlight and share this url.

    Download   RAW   Copy   Fork
  1. void _handleOnLongPress(Activity activity) {
  2.     showDialog(
  3.       context: context,
  4.       builder: (BuildContext context) {
  5.         return SimpleDialog(
  6.           title: Text(
  7.             activity.title.toString(),
  8.             style: TextStyle(color: colorTheme['dark']),
  9.           ),
  10.           children: [
  11.             Container(
  12.               child: Padding(
  13.                 padding: const EdgeInsets.all(20.0),
  14.                 child: Column(
  15.                   crossAxisAlignment: CrossAxisAlignment.start,
  16.                   children: [
  17.                     Container(
  18.                       child: Row(
  19.                         mainAxisAlignment: MainAxisAlignment.center,
  20.                         children: [
  21.                           ClipRRect(
  22.                             borderRadius: BorderRadius.circular(20.0),
  23.                             child: Image(
  24.                               height: 150.0,
  25.                               width: 150.0,
  26.                               image: AssetImage(activity.imagePath),
  27.                               // fit espande un immagine su tutto l'area disegnabile
  28.                               fit: BoxFit.cover,
  29.                             ),
  30.                           ),
  31.                         ],
  32.                       ),
  33.                     ),
  34.                     SizedBox(
  35.                       height: 30,
  36.                     ),
  37.                     Text(
  38.                       'Descrizione',
  39.                       style: TextStyle(
  40.                           color: colorTheme['dark'],
  41.                           fontSize: 15,
  42.                           fontWeight: FontWeight.w700),
  43.                     ),