24 lines
619 B
Dart
24 lines
619 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class RowWidget extends StatelessWidget {
|
|
final Widget? widget1;
|
|
final Widget? widget2;
|
|
final Widget? widget3;
|
|
final Widget? widget4;
|
|
|
|
const RowWidget(this.widget1, this.widget2, this.widget3, this.widget4,
|
|
{super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
Expanded(flex: 10, child: widget1 ?? Container()),
|
|
Expanded(flex: 6, child: widget2 ?? Container()),
|
|
Expanded(flex: 6, child: widget3 ?? Container()),
|
|
Expanded(flex: 6, child: widget4 ?? Container()),
|
|
],
|
|
);
|
|
}
|
|
}
|