huawei_gameservice 5.0.4+302 copy "huawei_gameservice: ^5.0.4+302" to clipboard
huawei_gameservice: ^5.0.4+302 copied to clipboard

outdated

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 'package:huawei_gameservice_example/custom_widgets/custom_appbar.dart';
import 'package:huawei_gameservice_example/custom_widgets/custom_body_layout.dart';
import 'package:huawei_gameservice_example/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
0
pub points
43%
popularity

Publisher

verified publisherdeveloper.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

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on huawei_gameservice