cupertino_container 1.0.0 copy "cupertino_container: ^1.0.0" to clipboard
cupertino_container: ^1.0.0 copied to clipboard

Cupertino Container Flutter Package

Cupertino Container #

Cupertino container package lets you add a container with cupertino rounded corners to your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  cupertino_container: ^1.0.0
  1. Import the package and use it in your Flutter App.
import 'package:cupertino_container/cupertino_container.dart';

Example #

There are a number of properties that you can modify:

  • radius
  • child
  • decoration
  • margin
  • padding
  • onPressed
  • height
  • width

class DemoScreen extends StatelessWidget {  
  const DemoScreen({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: Center(  
        child: CupertinoContainer(
            /// BORDER RADIUS CUPERTINO
            radius: BorderRadius
                .circular(30),
            width: 200,
            height: 100,
            child: const Center(
                child: Text(
                '30 rounded', 
                )
            ),
        ),
      ),  
    );  
  }  
}
Demo

Next Goals #

  • Add onPressed for functions. Now, you can specify the onPressed and specify a function.

  • Change other attributes of CupertinoContainer. Change margin, padding and other properties.

  • Add more containers to the package.

3
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

Cupertino Container Flutter Package

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on cupertino_container