mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-26 11:16:45 +08:00
chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8 * New GA * Fix dartdoc
This commit is contained in:
@ -19,10 +19,7 @@ class SmoothIndicatorIcon extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: margin ??
|
||||
const EdgeInsetsDirectional.all(
|
||||
VERY_SMALL_SPACE,
|
||||
),
|
||||
padding: margin ?? const EdgeInsetsDirectional.all(VERY_SMALL_SPACE),
|
||||
child: DecoratedBox(
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.black38,
|
||||
@ -31,11 +28,9 @@ class SmoothIndicatorIcon extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: padding ?? const EdgeInsetsDirectional.all(SMALL_SPACE),
|
||||
child: IconTheme(
|
||||
data: iconTheme ??
|
||||
const IconThemeData(
|
||||
color: Colors.white,
|
||||
size: 15.0,
|
||||
),
|
||||
data:
|
||||
iconTheme ??
|
||||
const IconThemeData(color: Colors.white, size: 15.0),
|
||||
child: icon,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user