circular_container_mybox 1.0.0
circular_container_mybox: ^1.0.0 copied to clipboard
comleate circular container
Circular Container #
A simple and customizable CircularContainer widget for Flutter that allows you to create a rounded container with adjustable width, height, color, and border radius.
Features #
- Customizable width and height
- Adjustable border radius
- Custom border color
- Lightweight and easy to use
Installation #
Add the package to your pubspec.yaml file:
dependencies:
your_package_name:
path: path_to_your_package
Then, run:
flutter pub get
Usage #
Import the package in your Dart file:
import 'package:your_package_name/circular_container.dart';
Example #
import 'package:flutter/material.dart';
import 'package:your_package_name/circular_container.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("Circular Container Example")),
body: Center(
child: CircularContainer(
boyi: 100, // Width
eni: 100, // Height
color: Colors.blue, // Border color
radi: 50, // Border radius
),
),
),
);
}
}
Properties #
Property | Type | Description | Default Value |
---|---|---|---|
boyi |
double? |
Width of the container | null |
eni |
double? |
Height of the container | null |
color |
Color? |
Border color | Colors.grey |
radi |
double? |
Border radius | 15 |
License #
This project is licensed under the MIT License.
Contribution #
Feel free to open issues or contribute to the project by submitting pull requests!
Contact #
For any questions or suggestions, please reach out to your_email@example.com.