inherit 0.1.0 inherit: ^0.1.0 copied to clipboard
Syntax sugars to manage flutter inherit in chain programming style.
import 'package:flutter/material.dart';
void main() {
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Probe(),
),
);
}
}
class Probe extends StatelessWidget {
const Probe({super.key});
@override
Widget build(BuildContext context) {
return const Center(child: Text('probe'));
}
}