Skip to content

Instantly share code, notes, and snippets.

View Frankdroid7's full-sized avatar
💭
Happily building mobile apps.

Frankdroid7 Frankdroid7

💭
Happily building mobile apps.
View GitHub Profile
@jogboms
jogboms / space.dart
Created January 24, 2022 06:14
A low-overhead Space widget for all Flex needs
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class Space extends LeafRenderObjectWidget {
const Space(this.space, {Key? key}) : super(key: key);
final double space;
@override
RenderObject createRenderObject(BuildContext context) => RenderSpace(space: space);