// Copyright 2014 The Flutter 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 'use_cases.dart'; class CardUseCase extends UseCase { @override String get name => 'Card'; @override String get route => '/card'; @override Widget build(BuildContext context) => const MainWidget(); } class MainWidget extends StatefulWidget { const MainWidget({super.key}); @override State createState() => MainWidgetState(); } class MainWidgetState extends State { bool favorite = false; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Semantics(headingLevel: 1, child: const Text('Card')), ), body: const Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Card( child: Padding( padding: EdgeInsets.all(16), child: Text('Card'), ), ), ], ), ), ); } }