summaryrefslogtreecommitdiffstats
path: root/lib/demo_3d.dart
blob: 9aeda408195dd941b2e23559cd27b2edbea3ebaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import 'package:flutter/material.dart';

// A 3D demo.
class Demo3dPage extends StatelessWidget {
  Demo3dPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
          gradient: LinearGradient(
              begin: Alignment.topRight,
              end: Alignment.bottomLeft,
              colors: [Colors.grey.shade800, Colors.grey.shade900])),
      child: Texture(
        textureId: 1,
      ),
    );
  }
}