Skip to content

Instantly share code, notes, and snippets.

View MobileLabStudio's full-sized avatar
👌

Sebastian Bruliński MobileLabStudio

👌
  • Mobile Lab
  • Białystok
  • 20:00 (UTC +01:00)
View GitHub Profile
@MobileLabStudio
MobileLabStudio / builder_with_constraints.dart
Last active January 31, 2023 15:02
Flutter widget similar to LayoutBuilder
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class BuilderWithConstraints extends RenderObjectWidget {
const BuilderWithConstraints({super.key, required this.builder});
final LayoutWidgetBuilder builder;
@override
RenderObject createRenderObject(BuildContext context) {