list_tile_switch
1.0.0, released 6 years ago by an unverified publisher
Combines ListTile with a switch, supporting Material, Cupertino, or custom switch.
WASM-ready
What it does
ListTileSwitch is a single-purpose widget that merges a ListTile with a trailing switch. It offers three switch types and exposes all ListTile properties for easy integration.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a ListTile that toggles a boolean value
- You want a quick switch in a list without writing custom code
- You prefer null‑safe, declarative widgets
Skip it when
- You need a highly custom switch animation or behavior
- You are building a complex form with many interactive elements
Strengths
- Easy to use, no boilerplate
- Supports Material, Cupertino, and custom switches
- Fully null‑safe and documented
Weaknesses
- Limited to switch functionality
- No iOS tests reported
- No advanced customization yet
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter/material.dart';
import 'package:list_tile_switch/list_tile_switch.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListTileSwitch(
value: true,
onChanged: (v) {},
title: Text('Example'),
switchType: SwitchType.cupertino,
);
}
}Alternatives
Packages that do the same job and could replace list_tile_switch.
- material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare - shape_of_view_null_safe
Give a custom shape to any Flutter widget with pre-built or custom shapes.
55Compare - flutter_custom_tab_bar
Custom tab bar widget with multiple indicator styles including vertical round, standard, linear, and round.
44Compare