Skip to content
Türkçe
All snippets

Flutter Place Preview Card with Gradient Map Header

A venue preview card with a gradient map header and location pin, a rating and distance row, a category badge, and open-now and Wi-Fi attribute pills. Built with Wind's Tailwind-style className and full dark-mode support.

  • WDiv
  • WIcon
  • WText
  • WSpacer
preview
7a55q86x.dart
WDiv(
  className: 'flex flex-col max-w-sm w-full 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-row items-center justify-center w-full h-36 bg-gradient-to-br from-emerald-400 to-teal-600 dark:from-emerald-600 dark:to-teal-800',
      child: WDiv(
        className: 'flex flex-row items-center justify-center w-16 h-16 rounded-full bg-white dark:bg-gray-900 shadow-lg',
        child: WIcon(
          Icons.location_on,
          className: 'text-3xl text-teal-600 dark:text-teal-400'
        ),
      ),
    ),
    WDiv(
      className: 'flex flex-col p-5',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-between w-full mb-2',
          children: [
            WText(
              'Blue Bottle Coffee',
              className: 'text-lg font-bold text-gray-900 dark:text-white'
            ),
            WDiv(
              className: 'rounded-full px-3 py-1 bg-amber-50 dark:bg-amber-950',
              child: WText(
                'Cafe',
                className: 'text-xs font-semibold text-amber-700 dark:text-amber-300'
              ),
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center mb-4',
          children: [
            WIcon(
              Icons.star,
              className: 'text-base text-amber-400 dark:text-amber-300 mr-1'
            ),
            WText(
              '4.8',
              className: 'text-sm font-bold text-gray-900 dark:text-white mr-1'
            ),
            WText(
              '(212 reviews)',
              className: 'text-sm text-gray-500 dark:text-gray-400 mr-3'
            ),
            WIcon(
              Icons.location_on,
              className: 'text-base text-gray-400 dark:text-gray-500 mr-1'
            ),
            WText(
              '1.2 km',
              className: 'text-sm text-gray-500 dark:text-gray-400'
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'flex flex-row items-center rounded-full px-3 py-1 bg-emerald-50 dark:bg-emerald-950 mr-2',
              children: [
                WDiv(
                  className: 'w-2 h-2 rounded-full bg-emerald-500 dark:bg-emerald-400 mr-2',
                  child: WSpacer(),
                ),
                WText(
                  'Open now',
                  className: 'text-xs font-semibold text-emerald-700 dark:text-emerald-300'
                ),
              ],
            ),
            WDiv(
              className: 'flex flex-row items-center rounded-full px-3 py-1 bg-gray-100 dark:bg-gray-800',
              children: [
                WIcon(
                  Icons.wifi,
                  className: 'text-sm text-gray-500 dark:text-gray-400 mr-1'
                ),
                WText(
                  'Free Wi-Fi',
                  className: 'text-xs font-semibold text-gray-700 dark:text-gray-200'
                ),
              ],
            ),
          ],
        ),
      ],
    ),
  ],
)
  • Flutter Navigation Lights Card with COLREGs Port, Starboard, Masthead and Stern Light Arcs

    A Flutter navigation lights card for boating and marine apps: a night panel with a top-down hull ringed by the COLREGs Rule 21 arcs, red port and green starboard sidelights at 112.5 degrees, a 225 degree masthead ring, a 135 degree sternlight and Rule 22 visibility ranges. Built with wind_kit.

    • WDiv
    • WIcon
    • WText
    • WButton
  • Flutter Runway Markings Card with Designator, Threshold Stripes and Aiming Point

    A Flutter runway markings card for aviation and flight training apps: the approach end of runway 27 drawn to scale, with eight threshold stripes, the designator from a 268 degree heading, a dashed centreline and twin aiming point bars, each called out. Absolute positioning in wind_kit.

    • WDiv
    • WIcon
    • WText
    • WButton
  • Flutter Container Ship Bay Plan Card with Colour Coded Port Stacks

    A Flutter container ship bay plan card for logistics and terminal apps: a row-by-tier cross-section of Bay 14 with port and starboard row numbers, deck tiers above the hatch cover, a tapered hold, slots coloured by discharge port, plugged reefers and a stowage legend. Built with wind_kit.

    • WDiv
    • WIcon
    • WText
    • WButton