mirrored_repositories/Serene/lib/shared
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import '../colors.dart';
import 'package:flutter_svg/svg.dart';
import 'package:google_fonts/google_fonts.dart';

class SvgLabel extends StatelessWidget {
  SvgLabel({
    @required this.assetName,
    @required this.label,
  });

  final String assetName;
  final String label;

  @override
  Widget build(BuildContext context) {
    return Column(children: <Widget>[
      SvgPicture.asset(
        assetName,
        height: 45,
        width: 45,
      ),
      SizedBox(height: 22.0),
      Text(
        label.toUpperCase(),
        textAlign: TextAlign.center,
        style: GoogleFonts.nunito(
          color: Colors.white,
          fontSize: 13,
          fontWeight: FontWeight.w700,
          height: .9,
        ),
      ),
    ]);
  }
}
