swipeable_card 1.0.2
swipeable_card: ^1.0.2 copied to clipboard
Add swipeable card-like widgets for games or interactive onboarding screens
example/lib/main.dart
// check out https://github.com/ninest/swipeable_card/tree/master/example
// for a better explanation
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'example_route.dart';
import 'example_slide_route.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// make it a full screen app
SystemChrome.setEnabledSystemUIOverlays([]);
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData.dark().copyWith(
// make the background color darker to put the cards in focus!
scaffoldBackgroundColor: Color(0xFF111111),
),
// home: ExampleRoute(),
// home: ExampleRoute(),
home: ExampleRouteSlide(),
);
}
}
copied to clipboard