blob: 0a9390a8ca834b70e2b3b006a2f5544b7462686c [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import '../logic/croupier_settings.dart' show CroupierSettings;
import '../styles/common.dart' as style;
class CroupierProfileComponent extends StatelessComponent {
final CroupierSettings settings;
CroupierProfileComponent(this.settings);
Widget build(BuildContext context) {
return new Container(
decoration:
new BoxDecoration(backgroundColor: new Color(settings.color)),
child: new Column([
new AssetImage(name: CroupierSettings.makeAvatarUrl(settings.avatar)),
new Text(settings.name, style: style.Text.liveNow)
]));
}
}