bs_flutter 0.4.7 copy "bs_flutter: ^0.4.7" to clipboard
bs_flutter: ^0.4.7 copied to clipboard

Simple flutter widget from Bootstrap v5 component, including responsive grid layout based on bootstrap grid system

example/lib/main.dart

import 'package:bs_flutter/bs_flutter.dart';
import 'package:bs_flutter_example/example_alert.dart';
import 'package:bs_flutter_example/example_badge.dart';
import 'package:bs_flutter_example/example_buttons.dart';
import 'package:bs_flutter_example/example_card.dart';
import 'package:bs_flutter_example/example_datatables.dart';
import 'package:bs_flutter_example/example_grid.dart';
import 'package:bs_flutter_example/example_inputtext.dart';
import 'package:bs_flutter_example/example_modal.dart';
import 'package:bs_flutter_example/example_selectbox.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: GestureDetector(
        onTap: () {
          SelectBoxOverlay.removeAll();
          OverlayDropdownButton.removeAll();
        },
        child: Scaffold(
          body: Scrollbar(
              child: SingleChildScrollView(
            child: Column(
              children: [
                BsNavbar(
                  margin: EdgeInsets.only(bottom: 20.0),
                  brand: BsNavBrand(
                    onPressed: () {},
                    child: Container(
                      child: Text('Brand'),
                    ),
                  ),
                ),
                ExampleCard(),
                ExampleGrid(),
                ExampleButtons(),
                ExampleBadge(),
                ExampleInputText(),
                ExampleAlert(),
                ExampleModal(),
                ExampleSelectBox(),
                ExampleDatatables(),
              ],
            ),
          )),
        ),
      ),
    );
  }
}
37
likes
70
points
188
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Simple flutter widget from Bootstrap v5 component, including responsive grid layout based on bootstrap grid system

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

bs_flutter_alert, bs_flutter_buttons, bs_flutter_card, bs_flutter_datatable, bs_flutter_inputtext, bs_flutter_modal, bs_flutter_responsive, bs_flutter_selectbox, bs_flutter_utils, flutter, flutter_web_plugins

More

Packages that depend on bs_flutter

Packages that implement bs_flutter