From 3a1476b99ad3e1bebc8f90ae606baf37230c6cc4 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Tue, 13 Aug 2024 09:10:38 +0200 Subject: [PATCH] Update dartdoc for gpu.dart --- lib/gpu/lib/gpu.dart | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/gpu/lib/gpu.dart b/lib/gpu/lib/gpu.dart index 8603811c3fd8b..ac41440e904e0 100644 --- a/lib/gpu/lib/gpu.dart +++ b/lib/gpu/lib/gpu.dart @@ -2,13 +2,22 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -/// The Flutter GPU library. +/// Flutter GPU is a low level API for building rendering packages from scratch. /// -/// To use, import `package:flutter_gpu/gpu.dart`. +/// To use, first add an SDK dependency in your `pubspec.yaml` file: +/// ``` +/// dependencies: +/// flutter_gpu: +/// sdk: flutter +/// ``` +/// And then add an import statement in your Dart files: +/// ```dart +/// import `package:flutter_gpu/gpu.dart`; +/// ``` /// /// See also: /// -/// * [Flutter GPU Wiki page](https://github.com/flutter/flutter/wiki/Flutter-GPU). +/// * [Flutter GPU documentation](https://github.com/flutter/engine/blob/main/docs/impeller/Flutter-GPU.md). library flutter_gpu; import 'dart:ffi';