1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Tidyup varfont_shader_puzzle (#1629)

* Tidyup `varfont_shader_puzzle`

* Add a rebuild script and a test

* Simplify fragment shaders

* Drop web

* Enable `beta` CI

* make it `beta` inclusive

* Pull out the program loading code
This commit is contained in:
Brett Morgan
2023-02-07 13:59:06 +10:00
committed by GitHub
parent 44f2356073
commit 54950c4284
52 changed files with 244 additions and 702 deletions

View File

@@ -200,7 +200,7 @@ class _PageAscenderDescenderState extends SinglePageState {
pageConfig: widget.pageConfig,
numTiles: 9,
puzzleNum: 3,
shaderKey: 'row_offset',
shader: Shader.rowOffset,
shaderDuration: 2000,
tileShadedString: 'fyd',
tileShadedStringPadding: EdgeInsets.only(

View File

@@ -1,6 +1,7 @@
// 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 '../components/components.dart';
import '../page_content/pages_flow.dart';

View File

@@ -1,6 +1,7 @@
// 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 '../components/components.dart';
import '../page_content/pages_flow.dart';

View File

@@ -1,6 +1,7 @@
// 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 'dart:math';
import 'package:flutter/material.dart';
@@ -178,7 +179,7 @@ class _PageOpticalSizeState extends SinglePageState {
pageConfig: widget.pageConfig,
numTiles: 16,
puzzleNum: 4,
shaderKey: 'wavy',
shader: Shader.wavy,
shaderDuration: 5000,
tileShadedString: 'Z',
tileShadedStringPadding:

View File

@@ -1,6 +1,7 @@
// 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 'dart:math';
import 'package:flutter/material.dart';
@@ -168,7 +169,7 @@ class _PageWeightState extends SinglePageState {
pageConfig: widget.pageConfig,
numTiles: 9,
puzzleNum: 1,
shaderKey: 'wavy2',
shader: Shader.wavy2,
shaderDuration: 3000,
tileShadedString: 'W',
tileShadedStringPadding: EdgeInsets.only(

View File

@@ -1,6 +1,7 @@
// 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 'dart:math';
import 'package:flutter/material.dart';
@@ -203,7 +204,7 @@ class _PageWidthState extends SinglePageState {
pageConfig: widget.pageConfig,
numTiles: 16,
puzzleNum: 2,
shaderKey: 'bw_split',
shader: Shader.bwSplit,
shaderDuration: 2000,
tileShadedString: 'S',
tileShadedStringPadding: EdgeInsets.only(

View File

@@ -1,6 +1,7 @@
// 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.
export 'page_ascender_descender.dart';
export 'page_narrative_post.dart';
export 'page_narrative_pre.dart';

View File

@@ -1,6 +1,7 @@
// 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 'dart:math';
import 'package:flutter/material.dart';

View File

@@ -1,6 +1,7 @@
// 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/foundation.dart';
import 'package:flutter/material.dart';