// Label StoreMax // // Created by Anthony Gordon. // 2021, WooSignal Ltd. All rights reserved. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import 'package:flutter/material.dart'; class TextRowWidget extends StatelessWidget { const TextRowWidget({Key key, @required this.title, @required this.text}) : super(key: key); final String title; final String text; @override Widget build(BuildContext context) { return Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Flexible( child: Container( child: Text(title, style: Theme.of(context).textTheme.headline6), ), flex: 3, ), Flexible( child: Container( child: Text( text, style: Theme.of(context).textTheme.bodyText1.copyWith(fontSize: 16), ), ), flex: 3, ) ], ); } }