Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu
Flutter Chip

Flutter Chip

Posted on December 7, 2025 by Toma Velev

Here are a few simple, copy-pasteable ways to make a Chip with a rounded border (including a pill / stadium shape and a bordered outline).

1) Simple Chip with rounded outline

Chip(
  avatar: CircleAvatar(child: Text('A')),
  label: Text('Rounded Chip'),
  shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(12), // adjust for roundness
    side: BorderSide(color: Colors.blue, width: 1.5),
  ),
  backgroundColor: Colors.white,
  elevation: 2,
);

RoundedRectangleBorder gives you precise control of radius and BorderSide.


2) Pill / fully rounded chip (stadium)

Chip(
  label: Text('Pill Chip'),
  shape: StadiumBorder(
    side: BorderSide(color: Colors.green, width: 1.2),
  ),
  padding: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  backgroundColor: Colors.white,
);

StadiumBorder produces a pill (capsule) style.


3) InputChip/ChoiceChip with rounded border and delete/action

InputChip(
  avatar: CircleAvatar(child: Icon(Icons.tag)),
  label: Text('InputChip'),
  onPressed: () { /* tap */ },
  onDeleted: () { /* delete */ },
  shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(16),
    side: BorderSide(color: Colors.orange, width: 1),
  ),
);

Use InputChip, ChoiceChip, FilterChip, or ActionChip depending on interaction needs — they all accept a shape.


4) Fully custom decorated chip (more styling freedom)

Container(
  padding: EdgeInsets.symmetric(horizontal: 12, vertical: 6),
  decoration: BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.circular(20),
    border: Border.all(color: Colors.purple, width: 1.4),
    boxShadow: [BoxShadow(color: Colors.black12, blurRadius: 4)],
  ),
  child: Row(
    mainAxisSize: MainAxisSize.min,
    children: [
      CircleAvatar(radius: 10, child: Text('B', style: TextStyle(fontSize: 12))),
      SizedBox(width: 8),
      Text('Custom Chip'),
      SizedBox(width: 6),
      Icon(Icons.close, size: 16),
    ],
  ),
)

Use this when you need full control over shape, shadow, gradients, or layout.


5) Use ChipTheme to style all chips globally

Theme(
  data: Theme.of(context).copyWith(
    chipTheme: ChipThemeData(
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12), side: BorderSide(color: Colors.blue)),
      backgroundColor: Colors.white,
      labelStyle: TextStyle(color: Colors.black),
      padding: EdgeInsets.symmetric(horizontal: 10),
    ),
  ),
  child: Wrap(
    spacing: 8,
    children: [
      Chip(label: Text('One')),
      Chip(label: Text('Two')),
    ],
  ),
);

Quick tips

  • shape is the key property (accepts any ShapeBorder).
  • Use RoundedRectangleBorder for corner control, StadiumBorder for pill shapes.
  • Border color/width → side: BorderSide(...).
  • For interaction variants, prefer InputChip, ChoiceChip, etc., which also support selected, onSelected, onDeleted.
  • If you need gradients or complex layout, wrap text in a Container with BoxDecoration.
  • Join iOS Beta Testing Explained
  • Firebase App Distribution Setup
  • iOS App Lifetime Unverified
  • Flutter Bottom Border
  • Get Flutter current time zone

Categories

  • Apps (25)
  • ChatGPT (24)
  • Choosing a Framework (38)
  • Flutter (279)
  • Graphical User Interface (14)
  • Marketing (118)
  • Software Development (288)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (4)
  • Uncategorized (14)
  • Vaadin (15)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (86)
    • Flutter Apps (26)
    • GPT (4)
    • Java (38)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (35)
    • Utils (15)
    • Vaadin 24+ (27)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Join iOS Beta Testing Explained
  • Firebase App Distribution Setup
  • iOS App Lifetime Unverified
  • Flutter Bottom Border
  • Get Flutter current time zone

Post Categories

  • Apps (25)
  • ChatGPT (24)
  • Choosing a Framework (38)
  • Flutter (279)
  • Graphical User Interface (14)
  • Marketing (118)
  • Software Development (288)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (4)
  • Uncategorized (14)
  • Vaadin (15)