Skip to content
Türkçe
All snippets

Flutter Recipe Card with Cook Time and Difficulty

A recipe card with a warm gradient cover, rating and saved badges, dish title and description, and meta chips for cook time, servings, and difficulty above a Cook now call to action. Built with Wind utility classes and full dark-mode pairs.

  • WDiv
  • WIcon
  • WText
preview
n5itjth8.dart
WDiv(
  className: 'flex flex-col w-full max-w-sm rounded-3xl overflow-hidden bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl',
  children: [
    WDiv(
      className: 'flex flex-col w-full h-36 p-4 bg-gradient-to-br from-orange-300 to-rose-500 dark:from-orange-500 dark:to-rose-700',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WDiv(
              className: 'flex flex-row items-center px-3 py-1 rounded-full bg-white dark:bg-gray-900',
              children: [
                WIcon(
                  Icons.star,
                  className: 'text-sm text-amber-500 dark:text-amber-400'
                ),
                WText(
                  '4.8',
                  className: 'ml-1 text-xs font-bold text-gray-900 dark:text-white'
                ),
              ],
            ),
            WDiv(
              className: 'flex flex-row items-center px-3 py-1 rounded-full bg-white dark:bg-gray-900',
              children: [
                WIcon(
                  Icons.favorite,
                  className: 'text-sm text-rose-500 dark:text-rose-400'
                ),
                WText(
                  'Saved',
                  className: 'ml-1 text-xs font-bold text-gray-900 dark:text-white'
                ),
              ],
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-col w-full p-5',
      children: [
        WText(
          'Creamy Tuscan Pasta',
          className: 'text-lg font-bold text-gray-900 dark:text-white'
        ),
        WText(
          'Sun-dried tomatoes, spinach, and parmesan in a velvety garlic cream sauce.',
          className: 'mt-1 text-sm text-gray-500 dark:text-gray-400'
        ),
        WDiv(
          className: 'flex flex-row items-center justify-between w-full mt-4',
          children: [
            WDiv(
              className: 'flex flex-row items-center px-3 py-1 rounded-full bg-gray-100 dark:bg-gray-800',
              children: [
                WIcon(
                  Icons.schedule,
                  className: 'text-sm text-gray-500 dark:text-gray-400'
                ),
                WText(
                  '25 min',
                  className: 'ml-1 text-xs font-medium text-gray-700 dark:text-gray-300'
                ),
              ],
            ),
            WDiv(
              className: 'flex flex-row items-center px-3 py-1 rounded-full bg-gray-100 dark:bg-gray-800',
              children: [
                WIcon(
                  Icons.person,
                  className: 'text-sm text-gray-500 dark:text-gray-400'
                ),
                WText(
                  '4 servings',
                  className: 'ml-1 text-xs font-medium text-gray-700 dark:text-gray-300'
                ),
              ],
            ),
            WDiv(
              className: 'flex flex-row items-center px-3 py-1 rounded-full bg-gray-100 dark:bg-gray-800',
              children: [
                WIcon(
                  Icons.bolt,
                  className: 'text-sm text-gray-500 dark:text-gray-400'
                ),
                WText(
                  'Easy',
                  className: 'ml-1 text-xs font-medium text-gray-700 dark:text-gray-300'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center justify-between w-full mt-5',
          children: [
            WText(
              '12 ingredients',
              className: 'text-sm text-gray-500 dark:text-gray-400'
            ),
            WDiv(
              className: 'flex flex-row items-center px-4 py-2 rounded-full bg-rose-500 dark:bg-rose-600',
              children: [
                WText(
                  'Cook now',
                  className: 'text-sm font-semibold text-white dark:text-white'
                ),
                WIcon(
                  Icons.arrow_forward,
                  className: 'ml-1 text-sm text-white dark:text-white'
                ),
              ],
            ),
          ],
        ),
      ],
    ),
  ],
)
  • Flutter Bookshelf Card with Book Spine Shelves and Reading Goal

    A reading tracker card for Flutter book apps, built with Wind: two wooden shelves of book spines in varied heights, colours and foil bands, a flat stack, a bookmark ribbon on the current read, a reading challenge badge and a page progress bar. The spine counts match the goal it reports.

    • WDiv
    • WText
    • WButton
  • Flutter Restaurant Floor Plan Card with Table Occupancy Status

    A Flutter restaurant floor plan card for host stand apps: round tops, banquette booths, a communal eight-top and a bar with stools, each table coloured free, seated or held. Every table is a div at a fixed pixel coordinate in wind_kit over WDynamic, no canvas, no image.

    • WDiv
    • WIcon
    • WText
    • WButton
  • Flutter Hiking Trail Card with Elevation Profile and Waypoints

    A Flutter hiking trail card for outdoor, trail running and cycling apps: a 34-step elevation profile with a ridge line, markers for trailhead, summit and lake, a distance axis, trip stat tiles, a snow advisory strip and a navigation button. Built with wind_kit className strings only.

    • WDiv
    • WText
    • WIcon
    • WButton