mirrored_repositories/flutter-ui-designs/lib/screens/AboutApp
import 'package:flutter/material.dart';

import 'package:flutter_uis/configs/AppDimensions.dart';
import 'package:flutter_uis/configs/AppTheme.dart';
import 'package:flutter_uis/configs/TextStyles.dart';

class AboutAppText extends StatelessWidget {
  AboutAppText(this.string, {this.point = false, textStyle})
      : this.textStyle = textStyle ?? TextStyle();
  final String string;
  final bool point;
  final TextStyle textStyle;

  @override
  Widget build(BuildContext context) {
    final color = point ? AppTheme.subText2 : AppTheme.text;
    TextStyle style = TextStyles.body26.copyWith(color: color).merge(textStyle);

    return Padding(
      padding: EdgeInsets.symmetric(
        vertical: AppDimensions.padding / 1.8,
        horizontal: AppDimensions.padding * 3,
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          point ? Text(" - ", style: style) : Container(),
          Flexible(
            child: Text(
              string,
              style: style,
            ),
          )
        ],
      ),
    );
  }
}
