Last updated:
0 purchases
flutter cupertino desktop kit
Cupertino Desktop Kit (CDK) #
This project, defines Flutter widgets for Desktop, providing a macOS style aesthetic, built upon the foundation of Cupertino widgets.
The goal is to be able to develop applications for all desktop systems, including the web, filling in the gaps in the Cupertino theme.
The CDK prefix strives to be distinctive within the Flutter ecosystem, while remaining concise and suggestive of Flutter Desktop and macOS AppKit. In doing so, it captures the essence of the project.
Getting Started #
The project itself is just a set of libraries that define and manage widgets. However, it includes an example of how to use them. The example can be seen on this website:
CDK toolkit web Example
CDK library documentation
Add the library as a dependency at pubspec.yaml #
dependencies:
flutter:
sdk: flutter
flutter_cupertino_desktop_kit: ">= 0.0.1 < 999.0.0"
copied to clipboard
Import the library #
import 'package:flutter_cupertino_desktop_kit/cdk.dart';
copied to clipboard
Then
flutter pub get
flutter pub upgrade
copied to clipboard
Use it #
return const CDKApp(
defaultAppearance: "system", // system, light, dark
defaultColor:
"systemBlue",
child: LayoutDesktop(title: "App Desktop Title"));
copied to clipboard
Run the example as a local app: #
cd example
flutter create .
flutter run
copied to clipboard
Create the project if necessary
flutter create . --template=package
rm lib/flutter_cupertino_desktop_kit.dart
rm -r test
cd example
flutter create . --platform macos # Or the platform of your choice
flutter run -d macos --enable-impeller
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.