wrap 0.5.0 copy "wrap: ^0.5.0" to clipboard
wrap: ^0.5.0 copied to clipboard

discontinuedreplaced by: modifier

Chain style programming syntax sugar utilities for flutter widgets.

example/lib/main.dart

import 'package:flutter/widgets.dart';
import 'package:wrap/wrap.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) => 'app root'
      .textWidget
      .wrapCenter
      .wrap((context, child) => child.wrapFontSize(context, 50))
      .wrapForeground(context, const Color(0xffdedcda))
      .wrapBackground(const Color(0xff804044))
      .ensureTextEnvironment(context);
}
0
likes
0
pub points
13%
popularity

Publisher

unverified uploader

Chain style programming syntax sugar utilities for flutter widgets.

Repository (GitHub)
View/report issues

Topics

#syntax-sugar #code-style #chain-style #chain-programming #flutter-widgets

License

unknown (license)

Dependencies

flutter

More

Packages that depend on wrap