flutter-woocommerce-app/LabelStoreMax/lib/resources/widgets/text_row_widget.dart
2023-01-06 16:11:58 -05:00

45 lines
1.2 KiB
Dart

// Label StoreMax
//
// Created by Anthony Gordon.
// 2023, 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, text;
@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
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,
)
],
);
}
}