flutter_curiosity 1.3.3 copy "flutter_curiosity: ^1.3.3" to clipboard
flutter_curiosity: ^1.3.3 copied to clipboard

outdated

The flutter curiosity is compatible with android and ios for multiple native features

example/lib/main.dart

import 'package:curiosity/src/camera_gallery.dart';
import 'package:curiosity/src/get_info.dart';
import 'package:curiosity/src/jump_setting.dart';
import 'package:curiosity/src/share.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_waya/flutter_waya.dart';

void main() {
  runApp(GlobalMaterial(
      debugShowCheckedModeBanner: false, title: 'Curiosity', home: App()));
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return OverlayScaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text('Flutter Curiosity Plugin Example'),
      ),
      body: Universal(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          RaisedButton(
              onPressed: () => push(widget: SharePage()),
              child: const Text('分享')),
          RaisedButton(
              onPressed: () => push(widget: GetInfoPage()),
              child: const Text('获取信息')),
          RaisedButton(
              onPressed: () => push(widget: JumpSettingPage()),
              child: const Text('跳转设置')),
          RaisedButton(
              onPressed: () => push(widget: CameraGalleryPage()),
              child: const Text('相机和图库')),
        ],
      ),
    );
  }
}

Widget showText(dynamic key, dynamic value) {
  return Container(
      margin: const EdgeInsets.all(10),
      child: Text(key.toString() + ' = ' + value.toString()));
}
2
likes
0
pub points
58%
popularity

Publisher

unverified uploader

The flutter curiosity is compatible with android and ios for multiple native features

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_curiosity