huawei_gameservice 5.0.4+304
huawei_gameservice: ^5.0.4+304 copied to clipboard

HUAWEI Game Service, provides a range of development capabilities to help you develop your games more efficiently.

example/lib/main.dart

/*
    Copyright 2021. Huawei Technologies Co., Ltd. All rights reserved.

    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

        https://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 'custom_widgets/custom_appbar.dart';
import 'custom_widgets/custom_body_layout.dart';
import 'custom_widgets/match_game/hms_card_info.dart';

void main() {
  runApp(MaterialApp(home: MyApp(HMSCardInfo.getShuffledCards)));
}

class MyApp extends StatelessWidget {
  final List<HMSCardInfo> hmsCards;

  const MyApp(this.hmsCards);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Stack(
      children: <Widget>[
        CustomAppBar(),
        CustomBodyLayout(hmsCards),
      ],
    ));
  }
}
2
likes
90
pub points
0%
popularity

Publisher

developer.huawei.com

HUAWEI Game Service, provides a range of development capabilities to help you develop your games more efficiently.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on huawei_gameservice