blob: b5178f774d70e0d742ef1eebe5f4abb24a30a72c [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' hide Intent;
import 'package:fuchsia_modular/module.dart';
import 'widgets/todo_widget.dart';
/// Main entry point to the todo list application.
void main() {
Module().registerIntentHandler(RootIntentHandler());
}
class RootIntentHandler extends IntentHandler {
@override
void handleIntent(Intent intent) async {
runApp(
MaterialApp(
home: TodoWidget(),
theme: ThemeData(primarySwatch: Colors.red),
),
);
}
}