hadss_avoid_area 1.0.0-rc.0 copy "hadss_avoid_area: ^1.0.0-rc.0" to clipboard
hadss_avoid_area: ^1.0.0-rc.0 copied to clipboard

A responsive component plug-in library for multi-device adaptation.

example/lib/main.dart

/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 * limitations under the License.
 */

import 'package:flutter/material.dart';

import 'avoid_area_ui.dart';
import 'fold_split_container_ui.dart';
import 'folder_stack_ui.dart';

void main() {
  runApp(const MaterialApp(
    home: MyApp(),
  ));
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            MaterialButton(
                color: Colors.blue,
                minWidth: double.infinity,
                child: const Text("FolderStack"),
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) => const FolderStackUI()));
                }),
            MaterialButton(
                color: Colors.blue,
                minWidth: double.infinity,
                child: const Text("FoldSplitContainer"),
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) => const FoldSplitContainerUI()));
                }),
            MaterialButton(
                color: Colors.blue,
                minWidth: double.infinity,
                child: const Text("AvoidArea"),
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) => const AvoidAreaUI()));
                }),
          ],
        ));
  }
}
0
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A responsive component plug-in library for multi-device adaptation.

Homepage
Repository

Topics

#fold #safe-area #avoid-area

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on hadss_avoid_area

Packages that implement hadss_avoid_area