circularbox 1.0.7+1 copy "circularbox: ^1.0.7+1" to clipboard
circularbox: ^1.0.7+1 copied to clipboard

Circular Box - Convert your container to special box with radius. Put your image in this box and make it circular or make your buttons with circular radius. This will work with all types of widget. P [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:circularbox/circularbox.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Circular Box Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Simple circular box example'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool isVisible = false;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: CircularBox(
          radius: 10,
          child: Container(
            width: 100,
            height: 100,
          )), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
2
likes
0
pub points
75%
popularity

Publisher

verified publisherdheeruapps.in

Circular Box - Convert your container to special box with radius. Put your image in this box and make it circular or make your buttons with circular radius. This will work with all types of widget. Put your widget as a child of circular box and set radius.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on circularbox