lib_flutter_base

Last updated:

0 purchases

lib_flutter_base Image
lib_flutter_base Images
Add to Cart

Description:

lib flutter base

lib_flutter_base #
A new flutter plugin project.
Getting Started #
This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Depend On Versions #

flutter_boost origin/v1.22.4-hotfixes

Create Flutter Plugin Steps #


Create flutter plugin
flutter create --org com.codesdancing.flutter --template=plugin --platforms=android,ios -i objc -a kotlin lib_flutter_base
copied to clipboard


Implement

Define API lib_flutter_base/lib/lib_flutter_base.dart # file name must be same as plugin name
Add android/IOS platform code
Add document and licenses file



Publish
flutter pub publish
copied to clipboard


Search packages will find uploaded flutter plugin


How to use
# depend on
dependencies:
lib_flutter_base: ^0.0.1

# install
flutter pub get

# import
import 'package:lib_flutter_base/lib_flutter_base.dart';
copied to clipboard


Example Test
# lib_flutter_base:
# path: ../

# change local dependency to remote
lib_flutter_base: ^0.0.1
copied to clipboard


Example Test Release (only can android, not ios)



flutter run --release --verbose


Flutter upgrade


remove example/.fvm/flutter_sdk/
change example/.fvm/fvm_config.json flutter version and then execute the command fvm install and fvm use 2.0.2 --global --force
change Android Studio -> Preference -> Language && Frameworks -> Flutter sdk path
delete pubspec.lock
delete example/pubspec.lock
delete example/ios/Podfile.lock
delete example/ios/Pods
delete example/ios/Pods/.symlinks/
flutter --no-color pub get && flutter run --verbose


Switch boost/multiple


./lib_flutter_base/pubspec.yaml

flutter:
# This section identifies this Flutter project as a plugin project.
# The 'pluginClass' and Android 'package' identifiers should not ordinarily
# be modified. They are used by the tooling to maintain consistency when
# adding or updating assets for this project.
plugin:
platforms:
android:
package: com.codesdancing.flutter
# pluginClass: LibFlutterBaseBoostPlugin
pluginClass: LibFlutterBaseMultiplePlugin
ios:
# pluginClass: LibFlutterBaseBoostPlugin
pluginClass: LibFlutterBaseMultiplePlugin
copied to clipboard

./lib_flutter_base/android

// STFlutterInitializer.kt
enableMultiple = false/true
copied to clipboard
// STFlutterMultipleUtils.kt
enableMultiEnginesWithSingleRoute = false/true
copied to clipboard

./lib_flutter_base/ios

_enableMultiple = YES/NO
_enableMultiEnginesWithSingleRoute = YES/NO
copied to clipboard

./lib_flutter_base/lib

// base_bridge_page.dart
enableMultiple = false/true
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.