component1.dart 774 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
// 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.

library component1;

import 'package:flutter/material.dart';


class LogoScreen extends StatelessWidget {
11
  const LogoScreen({super.key});
12 13 14 15 16 17 18

  static const String _testSentinel = 'Running deferred code';

  @override
  Widget build(BuildContext context) {
    print(_testSentinel);
    return Container(
19 20
      padding: const EdgeInsets.all(25),
      color: Colors.blue,
21 22
      child: Column(
        children: <Widget>[
23 24 25 26 27 28
          const Text('DeferredWidget', key: Key('DeferredWidget')),
          Image.asset('customassets/flutter_logo.png', key: const Key('DeferredImage')),
        ],
      ),
    );
  }
29
}