basf_flutter_components 0.0.1+2 basf_flutter_components: ^0.0.1+2 copied to clipboard
A collection of BASF Style components.
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(),
],
),
),
),
),
),
),
),
);
},
),
),
);
}
}