İçeriğe geç
English
Tüm örnekler

Flutter Reading Progress Card with Chapter Tracker

A reading companion card with book cover, genre tag, chapter progress bar, time-left estimate, rating, and a continue-reading action. Ideal for ebook, audiobook, and learning apps.

  • WDiv
  • WText
  • WSpacer
  • WIcon
önizleme
isf5zwsw.dart
WDiv(
  className: 'mx-auto max-w-sm flex flex-col gap-5 rounded-3xl p-6 bg-white border border-gray-200 shadow-xl dark:bg-gray-900 dark:border-gray-800',
  children: [
    WDiv(
      className: 'flex flex-row items-center gap-4 w-full',
      children: [
        WDiv(
          className: 'flex items-end justify-center w-16 h-24 rounded-xl p-2 bg-gradient-to-br from-rose-500 to-orange-500 shadow-lg dark:from-rose-600 dark:to-orange-600',
          child: WText(
            'PHM',
            className: 'text-xs font-black tracking-wider text-white dark:text-white',
          ),
        ),
        WDiv(
          className: 'flex flex-col gap-1',
          children: [
            WDiv(
              className: 'flex flex-row items-center gap-1 rounded-full px-2 py-1 bg-rose-100 dark:bg-rose-500/20',
              child: WText(
                'Sci-Fi',
                className: 'text-[10px] font-bold uppercase tracking-wide text-rose-600 dark:text-rose-300',
              ),
            ),
            WText(
              'Project Hail Mary',
              className: 'text-base font-bold text-gray-900 dark:text-white',
            ),
            WText(
              'Andy Weir',
              className: 'text-xs text-gray-500 dark:text-gray-400',
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-col gap-2 w-full',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WText(
              'Chapter 14 of 32',
              className: 'text-xs font-semibold text-gray-700 dark:text-gray-300',
            ),
            WText(
              '44%',
              className: 'text-xs font-bold text-rose-600 dark:text-rose-400',
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center w-full h-2 rounded-full bg-gray-200 dark:bg-gray-700',
          child: WDiv(
            className: 'h-2 w-[128px] rounded-full bg-gradient-to-r from-rose-500 to-orange-500 dark:from-rose-500 dark:to-orange-500',
            child: WSpacer(
              className: 'w-[128px] h-2',
            ),
          ),
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full',
      children: [
        WDiv(
          className: 'flex flex-row items-center gap-2',
          children: [
            WIcon(
              Icons.schedule,
              className: 'text-gray-400 text-sm dark:text-gray-500',
            ),
            WText(
              '3h 12m left',
              className: 'text-xs font-medium text-gray-500 dark:text-gray-400',
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center gap-1',
          children: [
            WIcon(
              Icons.star,
              className: 'text-amber-400 text-sm dark:text-amber-300',
            ),
            WText(
              '4.8',
              className: 'text-xs font-bold text-gray-700 dark:text-gray-200',
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-center gap-2 w-full rounded-2xl px-4 py-3 bg-gray-900 dark:bg-white',
      children: [
        WIcon(
          Icons.play_arrow,
          className: 'text-white text-base dark:text-gray-900',
        ),
        WText(
          'Continue reading',
          className: 'text-sm font-bold text-white dark:text-gray-900',
        ),
      ],
    ),
  ],
)
  • Flutter Electromagnetic Spectrum Card with Log Scale Wavelength Bands and Visible Light Zoom

    A Flutter electromagnetic spectrum card for science and physics education apps: radio, microwave, infrared, visible, UV, X-ray and gamma bands on a log wavelength axis from 10 m to 0.1 pm with NASA band edges, and a connector zooming the visible slice into a 700 to 400 nm strip. Built with wind_kit.

    • WDiv
    • WIcon
    • WText
    • WButton
  • Flutter Seven Segment Display Card with Lit LED Digits and Register Byte Decoder

    A seven segment LED card for embedded, IoT and maker apps: a four digit red display reading 12.45 with unlit segments still glowing faintly, an enlarged digit with segments A to G and the decimal point labelled, its MAX7219 no-decode register byte 0xED in hex and binary, and a DP to G bit strip from D7 to D0.

    • WDiv
    • WIcon
    • WText
    • WButton
  • Flutter Pascal Triangle Card with Odd Entry Pattern and Row Sums

    A Flutter Pascal's triangle card for maths and tutoring apps: rows 0 to 7 as binomial coefficient tiles, odd entries shaded so the Sierpinski pattern shows, and a row sum gutter doubling from 1 to 128. Counts 36 entries, 27 odd, 255 total. Centred wind_kit rows, one node per number.

    • WDiv
    • WIcon
    • WText
    • WButton