Skip to main content

curved_container 0.0.1 copy "curved_container: ^0.0.1" to clipboard
curved_container: ^0.0.1 copied to clipboard

One Line Code for Curved Container.

Curved Container for Flutter #

Pub License: MIT

Installing #

Add this to your package's /pubspec.yaml file:

dependencies:
  curved_container: ^latest

Import #

import 'package:curved_container/curved_container.dart';

How to use #


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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Curved Container',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const _CurvedContainerExample(),
    );
  }
}

class _CurvedContainerExample extends StatelessWidget {
  const _CurvedContainerExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Curved Container Example'),
      ),
      body: CurvedContainer(
        defaultMargin: false,
        containerHeight: 100,
        curvedRadius: 2,
        color: Colors.yellow,
      ),
    );
  }
}

Now, enjoy yourself:

CurvedContainer(
  defaultMargin: false,
  containerHeight: 100,
  curvedRadius: 2,
  color: Colors.yellow,
    child: ...
);

Customize #

❗️Note:

  • backColor、curveRadius

License #

MIT License

2
likes
130
points
61
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

One Line Code for Curved Container.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on curved_container