basf_flutter_components 0.0.1+2 copy "basf_flutter_components: ^0.0.1+2" to clipboard
basf_flutter_components: ^0.0.1+2 copied to clipboard

outdated

A collection of BASF Style components.

example/lib/main.dart

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

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'BASF Components',
      home: Scaffold(
        body: LayoutBuilder(
          builder: (context, constraint) {
            return Center(
              child: Scrollbar(
                child: SingleChildScrollView(
                  physics: const BouncingScrollPhysics(),
                  reverse: true,
                  child: ConstrainedBox(
                    constraints:
                        BoxConstraints(minHeight: constraint.maxHeight),
                    child: SafeArea(
                      child: Padding(
                        padding: const EdgeInsets.symmetric(horizontal: 24),
                        child: IntrinsicHeight(
                          child: Column(
                            children: [
                              const Spacer(),
                              BASFButton(
                                text: 'BASF Button',
                                onPressed: () {},
                              ),
                              const Spacer(),
                            ],
                          ),
                        ),
                      ),
                    ),
                  ),
                ),
              ),
            );
          },
        ),
      ),
    );
  }
}
11
likes
0
pub points
61%
popularity

Publisher

unverified uploader

A collection of BASF Style components.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, logger, onetrust_publishers_native_cmp

More

Packages that depend on basf_flutter_components