Comments (4)
hope this solves your problem @zubairehman kindly update your pubspec.yml
from flutter_boilerplate_project.
same problem
from flutter_boilerplate_project.
name: boilerplate
description: A flutter boilerplate project created using MobX and Provider.
version: 1.0.0+1
environment:
sdk: ">=2.15.0 <3.7.7"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
cupertino_icons: ^1.0.3
shared_preferences: ^2.0.6
http: ^0.13.3
mobx: ^2.0.1
flutter_mobx: ^2.0.0
provider: ^5.0.0
validators: ^3.0.0
dio: ^4.0.0
another_flushbar: ^1.10.23
material_dialog: ^1.0.0-nullsafety.1
intl: any
xxtea: ^2.1.0
sembast: ^3.1.0+2
path_provider: ^2.0.2
get_it: ^7.1.3
google_fonts: ^2.3.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.12.0
mobx_codegen: ^2.1.1
build_runner: ^2.3.3
analyzer: ^5.10.0
flutter_icons:
image_path: "assets/icons/ic_launcher.png"
android: true
ios: true
flutter:
uses-material-design: true
assets:
- assets/images/
- assets/icons/
- assets/lang/
fonts:
- family: ProductSans
fonts:- asset: assets/fonts/Product-Sans-Regular.ttf
- asset: assets/fonts/Product-Sans-Italic.ttf
style: italic - asset: assets/fonts/Product-Sans-Bold.ttf
weight: 700
from flutter_boilerplate_project.
Thanks @tusharuit25
implemented your suggestions into the code, changing to the next pubspec.yml worked for me:
name: boilerplate
description: A flutter boilerplate project created using MobX and Provider.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 1.0.0+1
environment:
sdk: ">=2.15.0 <3.7.7"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
# The following adds the shared pref as a dependency in your application
shared_preferences: ^2.0.6
# A composable, Future-based library for making HTTP requests.
http: ^0.13.3
# Flogs, a powerful logging framework
# f_logs: ^1.2.2
# MobX is a library for reactively managing the state of your applications. Use the power of
# observables, actions, and reactions to supercharge your Dart and Flutter apps.
mobx: ^2.0.1
flutter_mobx: ^2.0.0
# An helper to easily exposes a value using InheritedWidget without having to write one.
provider: ^5.0.0
# String validation and sanitization for Dart. Dart 2-compatible version of validator
validators: ^3.0.0
# A powerful Http client for Dart
dio: ^4.0.0
# A flexible widget for user notification. Customize your text, button, duration, animations
# and much more. For Android devs, it is made to replace Snackbars and Toasts.
another_flushbar: ^1.10.23
# Material Dialog
material_dialog: ^1.0.0-nullsafety.1
# This package provides internationalization and localization facilities, including message
# translation, plurals and genders, date/number formatting and parsing, and bidirectional text.
intl: ^0.17.0
# XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Dart.
xxtea: ^2.1.0
# An helper to easily exposes a value using InheritedWidget without having to write one.
sembast: ^3.1.0+2
path_provider: ^2.0.2
# for dependency injection
get_it: ^7.1.3
google_fonts: ^2.3.2
dev_dependencies:
flutter_test:
sdk: flutter
# The following adds the launcher icon support to your application.
# run below mentioned commands to generate launcher icons
# flutter packages get
# flutter packages pub run flutter_launcher_icons:main
flutter_launcher_icons: ^0.12.0
mobx_codegen: ^2.1.1
build_runner: ^2.3.3
analyzer: ^5.10.0
flutter_icons:
image_path: "assets/icons/ic_launcher.png"
android: true
ios: true
# For information on the generic Dart art of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/icons/
- assets/lang/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.io/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
fonts:
- family: ProductSans
fonts:
- asset: assets/fonts/Product-Sans-Regular.ttf
- asset: assets/fonts/Product-Sans-Italic.ttf
style: italic
- asset: assets/fonts/Product-Sans-Bold.ttf
weight: 700
# For details regarding fonts from package dependencies,
# see https://flutter.io/custom-fonts/#from-packages
from flutter_boilerplate_project.
Related Issues (20)
- user_store.login is never invoked, form_store.login is used instead. HOT 1
- update dependencies please HOT 1
- Build failed due to use of deprecated Android v1 embedding HOT 2
- extended boilerplate with (acm) access control management on categorized content
- GetIt question around PostStore HOT 1
- can tabbar be supported now?
- CommonRespository get error HOT 2
- when login send a real params cant get response
- feature/mvi branch update compileSdkVersion to 31
- feature/mvi branch provider is now missing?
- why is languagestore, themestore, userstore registered in service_locator HOT 2
- feature/mvi branch PostStore
- how to handle connectivity of internet with this boilerplate?
- What should I do to add the repo new features
- non-execution HOT 2
- Unable to run this project
- unable to run the project pls help
- Why are `mixin`s used for the DI stuff, like `NetworkModule`?
- Documentation needs to be updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_boilerplate_project.