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

Flutter Bootstrap cards provide a flexible and extensible content container with multiple variants and options.

example/lib/main.dart

import 'package:bs_flutter_buttons/bs_flutter_buttons.dart';
import 'package:bs_flutter_card/bs_flutter_card.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Bootstrap Card'),
        ),
        body: Container(
          padding: EdgeInsets.all(20.0),
          child: Column(
            children: [
              BsCard(
                children: [
                  BsCardContainer(title: Text('Box Card')),
                  BsCardContainer(child: Container(
                    child: Text('Box Card Content'),
                  )),
                  BsCardContainer(actions: [
                    BsButton(
                      onPressed: () {},
                      style: BsButtonStyle.primary,
                      prefixIcon: Icons.block,
                      label: Text('Primary'),
                    )
                  ])
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
80
pub points
42%
popularity

Publisher

unverified uploader

Flutter Bootstrap cards provide a flexible and extensible content container with multiple variants and options.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bs_flutter_utils, flutter, flutter_web_plugins

More

Packages that depend on bs_flutter_card