Этот репозиторий содержит Flutter плагины для платформы ОС Аврора.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// SPDX-FileCopyrightText: Copyright 2023 Open Mobile Platform LLC <community@omp.ru>
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_example_packages/base/package/package.dart';
|
|
|
|
|
|
|
|
class PackagePage extends Package {
|
|
|
|
PackagePage({
|
|
|
|
required super.key,
|
|
|
|
required super.descEN,
|
|
|
|
required super.descRU,
|
|
|
|
required super.version,
|
|
|
|
required super.isPlatformDependent,
|
|
|
|
required this.page,
|
|
|
|
required this.init,
|
|
|
|
}) {
|
|
|
|
init.call();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Package preview page
|
|
|
|
final Widget Function() page;
|
|
|
|
|
|
|
|
/// Init callback
|
|
|
|
final void Function() init;
|
|
|
|
}
|