1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/experimental/varfont_shader_puzzle/lib/main.dart
Miguel Beltran 3267b13822 Enable Material 3 on experimental/varfont_shader_puzzle (#1950)
Enable Material 3.

Very small differences in the default font weight.

#### Before Material 3

<img width="912" alt="Screenshot 2023-07-20 at 15 16 57"
src="https://github.com/flutter/samples/assets/2494376/3d5baeb8-9718-47ca-918f-61189305816b">

#### With Material 3

<img width="912" alt="Screenshot 2023-07-20 at 15 18 10"
src="https://github.com/flutter/samples/assets/2494376/3026f8e4-4807-4c8c-a790-d3c7118474ce">

## Pre-launch Checklist

- [ ] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [ ] I signed the [CLA].
- [ ] I read the [Contributors Guide].
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md

Co-authored-by: Brett Morgan <brettmorgan@google.com>
2023-07-21 11:33:40 +10:00

31 lines
706 B
Dart

// Copyright 2023 The Flutter team. 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 '../page_content/pages_flow.dart';
void main() {
runApp(const TypePuzzle());
}
class TypePuzzle extends StatelessWidget {
const TypePuzzle({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Type Jam',
theme: ThemeData(
primarySwatch: Colors.grey,
useMaterial3: true,
),
home: const Scaffold(
appBar: null,
body: PagesFlow(),
),
);
}
}