brick_bootstrap5_plus 1.0.7 copy "brick_bootstrap5_plus: ^1.0.7" to clipboard
brick_bootstrap5_plus: ^1.0.7 copied to clipboard

A Flutter UI Dart libraries with the bootstrap5.

example/brick_bootstrap5_plus_example.dart

import 'dart:developer';

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

void main() {
  runApp(
    MaterialApp(
      home: build(),
    ),
  );
}

Widget build() {
  String className = 'color-blue font-size-14';

  /// Generate a style based on className
  Style? styles = convertClassNamesToStyle(className);
  inspect(styles);

  /// https://api.flutter.dev/flutter/widgets/MediaQuery-class.html
  return MediaQueryBuilder(builder: (context, constraints, screenData) {
    /// Gets the current screen style
    StyleAbbrSet s = getStyle(screenData, constraints, styles);
    inspect(s);

    return Container(
      child: Column(
        children: [
          Text(
            'byClassName',
            style: TextStyle(
              color: s.color,
              fontSize: s.fs,
            ),
          ),
          // equate
          Text(
            'default',
            style: TextStyle(
              color: Colors.blue,
              fontSize: 14,
            ),
          ),
        ],
      ),
    );
  });
}
1
likes
130
points
87
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter UI Dart libraries with the bootstrap5.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, intersperse, intl, tinycolor2

More

Packages that depend on brick_bootstrap5_plus