mirrored_repositories/nirogi/lib/src
import 'package:flutter/material.dart';
import 'package:nirogi/src/models/models.dart';

class ChoiceCard extends StatelessWidget {
  const ChoiceCard({Key key, this.choice}) : super(key: key);

  final Choice choice;

  @override
  Widget build(BuildContext context) {
    return Text(choice.title,
        style: Theme.of(context).textTheme.body1.copyWith(fontSize: 14));
  }
}

class ForumChoiceCard extends StatelessWidget {
  const ForumChoiceCard({Key key, this.choice}) : super(key: key);

  final ForumChoice choice;

  @override
  Widget build(BuildContext context) {
    final width = MediaQuery.of(context).size.width;
    return Row(
      children: <Widget>[
        Image.asset(
          choice.icon,
          width: 0.06 * width,
        ),
        SizedBox(
          width: 0.04 * width,
        ),
        Text(choice.title,
            style: Theme.of(context).textTheme.body1.copyWith(
                  fontSize: 18,
                )),
      ],
    );
  }
}
