Skip to content

Commit

Permalink
Remove TitleAndSubtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 24, 2023
1 parent f52667c commit 41cc403
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
- [📱 Widgets](#-widgets)
- [🔳 Buttons](#-buttons)
- [🥙 FillOrWrap](#-fillorwrap)
- [📚 TitleAndSubtitle](#-titleandsubtitle)
- [🖼 RenderObject](#-renderobject)
- [↕ Size](#-size)

Expand Down Expand Up @@ -184,22 +183,6 @@ A layout with two different behaviors:
- If the children are too wide to fit in a single line, or one child would become smaller than its reported minimum width, the children get positioned **below each other** ("wrapped"). This is similar to a [`Column`] with [`MainAxisSize.min`].


### 📚 TitleAndSubtitle

Did you ever want to show a subtitle (in addition to a main title) in your `AppBar`? Use [`TitleAndSubtitle`] (very creative name, I know):

```dart
AppBar(
title: TitleAndSubtitle(
title: Text('My title'),
subtitle: Text('My optional subtitle'),
),
)
```

[`TitleAndSubtitle`]: https://pub.dev/documentation/black_hole_flutter/latest/black_hole_flutter/FancyFab-class.html


## 🖼 RenderObject

When writing a custom layout, you might find this extension on [`ContainerRenderObjectMixin`] useful:
Expand Down
1 change: 0 additions & 1 deletion lib/black_hole_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ export 'src/size.dart';
export 'src/widgets/buttons.dart';
export 'src/widgets/fill_or_wrap.dart';
export 'src/widgets/or_scroll.dart';
export 'src/widgets/title_and_subtitle.dart';
38 changes: 0 additions & 38 deletions lib/src/widgets/title_and_subtitle.dart

This file was deleted.

0 comments on commit 41cc403

Please sign in to comment.