flutter-woocommerce-app/LabelStoreMax/lib/resources/widgets/app_loader_widget.dart
2022-02-08 00:00:15 +00:00

25 lines
742 B
Dart

// Label StoreMax
//
// Created by Anthony Gordon.
// 2022, WooSignal Ltd. All rights reserved.
//
// 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.
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class AppLoaderWidget extends StatelessWidget {
const AppLoaderWidget({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
bool isDark = (Theme.of(context).brightness == Brightness.dark);
return SpinKitDoubleBounce(
color: Color(!isDark ? 0xFF424242 : 0xFFC7C7C7),
);
}
}