blob: ae9dc9d2f56f8869a497af27e3e97184c5495a85 [file] [log] [blame]
// Copyright 2018 The Fuchsia 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 'src/dashboard.dart';
import 'src/system_info_model.dart';
void main() {
SystemInfoModel model = SystemInfoModel();
runApp(SystemDashboard(model));
}
/// System Dashboard display the following information to the user
///
/// - CPU Utilization
/// - CPU Temperature
/// - Core Frequency & Voltage
/// - Fan Speed
class SystemDashboard extends StatelessWidget {
final SystemInfoModel _model;
const SystemDashboard(this._model);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'System Dashboard',
theme: ThemeData(primarySwatch: Colors.blue),
home: ScopedModel<SystemInfoModel>(
model: _model,
child: Dashboard(),
),
);
}
}