debug_bricks_ui

Creator: coderz1093

Last updated:

0 purchases

debug_bricks_ui Image
debug_bricks_ui Images

Languages

Categories

Add to Cart

Description:

debug bricks ui

Set of UI components that you can use for implementing debug screens.
Almost all library components (except SliderBrick) are just ListTile wrappers. That means that
fof component theming you should follow ListTile theming instructions.
Getting started #
Add to your pubspec.yaml:
dependencies:
debug_bricks_ui: <last_version>
copied to clipboard
Components #
TextBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
return TextBrick(
infoIconData: Icons.devices,
actionIconData: Icons.copy,
title: 'TextBrick',
subtitle: 'Subtitle',
onTap: () {},
);
}
}
copied to clipboard
CheckboxBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
return CheckboxBrick(
title: 'CheckboxBrick',
subtitle: 'Subtitle',
value: true,
changeListener: (value) => {},
);
}
}
copied to clipboard
RadioBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
return RadioBrick<String>(
title: 'RadioBrick',
subtitle: 'Subtitle',
value: 'value',
groupValue: 'value',
changeListener: (value) {},
);
}
}
copied to clipboard
SwitchBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
return SwitchBrick(
title: 'SwitchBrick',
subtitle: 'Subtitle',
value: true,
changeListener: (value) => {},
);
}
}
copied to clipboard
SliderBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
final value = 50;
return SliderBrick(
title: 'SliderBrick',
subtitle: 'Subtitle',
iconData: Icons.trending_flat,
minValue: 0,
maxValue: 100,
value: value,
divisions: 10,
label: value.toString(),
);
}
}
copied to clipboard
ExpandableBrick #


import 'package:debug_bricks_ui/debug_bricks_ui.dart';

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

@override
Widget build(BuildContext context) {
return ExpandableBrick(
title: 'ExpandableBrick',
subtitle: 'Subtitle',
children: _buildChildren(),
);
}

List<Widget> _buildChildren() {
// build items
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.