Viewing version 4.7.3. Open the latest package page.

get

4.7.3

Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.

Download archive

Readme

pub package popularity likes pub points building style: effective dart Discord Shield Get on Slack Telegram

Languages:

English Vietnamese Indonesian Urdu Chinese Portuguese Spanish Russian Polish Korean French Japanese

About Get

  • GetX is an extra-light and powerful solution for Flutter. It combines high-performance state management, intelligent dependency injection, and route management quickly and practically.

  • GetX has 3 basic principles. This means that these are the priority for all resources in the library: PRODUCTIVITY, PERFORMANCE AND ORGANIZATION.

    • PERFORMANCE: GetX is focused on performance and minimum consumption of resources. GetX does not use Streams or ChangeNotifier.

    • PRODUCTIVITY: GetX uses an easy and pleasant syntax. No matter what you want to do, there is always an easier way with GetX. It will save hours of development and will provide the maximum performance your application can deliver.

      Generally, the developer should be concerned with removing controllers from memory. With GetX this is not necessary because resources are removed from memory when they are not used by default. If you want to keep it in memory, you must explicitly declare "permanent: true" in your dependency. That way, in addition to saving time, you are less at risk of having unnecessary dependencies on memory. Dependency loading is also lazy by default.

    • ORGANIZATION: GetX allows the total decoupling of the View, presentation logic, business logic, dependency injection, and navigation. You do not need context to navigate between routes, so you are not dependent on the widget tree (visualization) for this. You don't need context to access your controllers/blocs through an inheritedWidget, so you completely decouple your presentation logic and business logic from your visualization layer. You do not need to inject your Controllers/Models/Blocs classes into your widget tree through MultiProviders. For this, GetX uses its own dependency injection feature, decoupling the DI from its view completely.

      With GetX you know where to find each feature of your application, having clean code by default. In addition to making maintenance easy, this makes the sharing of modules something that until then in Flutter was unthinkable, something totally possible. BLoC was a starting point for organizing code in Flutter, it separates business logic from visualization. GetX is a natural evolution of this, not only separating the business logic but the presentation logic. Bonus injection of dependencies and routes are also decoupled, and the data layer is out of it all. You know where everything is, and all of this in an easier way than building a hello world. GetX is the easiest, practical, and scalable way to build high-performance applications with the Flutter SDK. It has a large ecosystem around it that works perfectly together, it's easy for beginners, and it's accurate for experts. It is secure, stable, up-to-date, and offers a huge range of APIs built-in that are not present in the default Flutter SDK.

  • GetX is not bloated. It has a multitude of features that allow you to start programming without worrying about anything, but each of these features are in separate containers and are only started after use. If you only use State Management, only State Management will be compiled. If you only use routes, nothing from the state management will be compiled.

  • GetX has a huge ecosystem, a large community, a large number of collaborators, and will be maintained as long as the Flutter exists. GetX too is capable of running with the same code on Android, iOS, Web, Mac, Linux, Windows, and on your server. It is possible to fully reuse your code made on the frontend on your backend with Get Server.

In addition, the entire development process can be completely automated, both on the server and on the front end with Get CLI.

In addition, to further increase your productivity, we have the extension to VSCode and the extension to Android Studio/Intellij

Installing

Add Get to your pubspec.yaml file:

dependencies:
  get:

Import get in files that it will be used:

import 'package:get/get.dart';

Counter App with GetX

The "counter" project created by default on new project on Flutter has over 100 lines (with comments). To show the power of Get, I will demonstrate how to make a "counter" changing the state with each click, switching between pages and sharing the state between screens, all in an organized way, separating the business logic from the view, in ONLY 26 LINES CODE INCLUDING COMMENTS.

  • Step 1: Add "Get" before your MaterialApp, turning it into GetMaterialApp
void main() => runApp(GetMaterialApp(home: Home()));
  • Note: this does not modify the MaterialApp of the Flutter, GetMaterialApp is not a modified MaterialApp, it is just a pre-configured Widget, which has the default MaterialApp as a child. You can configure this manually, but it is definitely not necessary. GetMaterialApp will create routes, inject them, inject translations, inject everything you need for route navigation. If you use Get only for state management or dependency management, it is not necessary to use GetMaterialApp. GetMaterialApp is necessary for routes, snackbars, internationalization, bottomSheets, dialogs, and high-level apis related to routes and absence of context.

  • Note²: This step is only necessary if you gonna use route management (Get.to(), Get.back() and so on). If you not gonna use it then it is not necessary to do step 1

  • Step 2: Create your business logic class and place all variables, methods and controllers inside it. You can make any variable observable using a simple ".obs".

class Controller extends GetxController{
  var count = 0.obs;
  increment() => count++;
}
  • Step 3: Create your View, use StatelessWidget and save some RAM, with Get you may no longer need to use StatefulWidget.
class Home extends StatelessWidget {

  @override
  Widget build(context) {

    // Instantiate your class using Get.put() to make it available for all "child" routes there.
    final Controller c = Get.put(Controller());

    return Scaffold(
      // Use Obx(()=> to update Text() whenever count is changed.
      appBar: AppBar(title: Obx(() => Text("Clicks: ${c.count}"))),

      // Replace the 8 lines Navigator.push by a simple Get.to(). You don't need context
      body: Center(child: ElevatedButton(
              child: Text("Go to Other"), onPressed: () => Get.to(Other()))),
      floatingActionButton:
          FloatingActionButton(child: Icon(Icons.add), onPressed: c.increment));
  }
}

class Other extends StatelessWidget {
  // You can ask Get to find a Controller that is being used by another page and redirect you to it.
  final Controller c = Get.find();

  @override
  Widget build(context){
     // Access the updated count variable
     return Scaffold(body: Center(child: Text("${c.count}")));
  }
}

Result:

This is a simple project but it already makes clear how powerful Get is. As your project grows, this difference will become more significant.

Get was designed to work with teams, but it makes the job of an individual developer simple.

Improve your deadlines, deliver everything on time without losing performance. Get is not for everyone, but if you identified with that phrase, Get is for you!

The Three pillars

State management

Get has two different state managers: the simple state manager (we'll call it GetBuilder) and the reactive state manager (GetX/Obx)

Reactive State Manager

Reactive programming can alienate many people because it is said to be complicated. GetX turns reactive programming into something quite simple:

  • You won't need to create StreamControllers.
  • You won't need to create a StreamBuilder for each variable
  • You will not need to create a class for each state.
  • You will not need to create a get for an initial value.
  • You will not need to use code generators

Reactive programming with Get is as easy as using setState.

Let's imagine that you have a name variable and want that every time you change it, all widgets that use it are automatically changed.

This is your count variable:

var name = 'Jonatas Borges';

To make it observable, you just need to add ".obs" to the end of it:

var name = 'Jonatas Borges'.obs;

And in the UI, when you want to show that value and update the screen whenever the values changes, simply do this:

Obx(() => Text("${controller.name}"));

That's all. It's that simple.

More details about state management

See an more in-depth explanation of state management here. There you will see more examples and also the difference between the simple state manager and the reactive state manager

You will get a good idea of GetX power.

Route management

If you are going to use routes/snackbars/dialogs/bottomsheets without context, GetX is excellent for you too, just see it:

Add "Get" before your MaterialApp, turning it into GetMaterialApp

GetMaterialApp( // Before: MaterialApp(
  home: MyHome(),
)

Navigate to a new screen:


Get.to(NextScreen());

Navigate to new screen with name. See more details on named routes here


Get.toNamed('/details');

To close snackbars, dialogs, bottomsheets, or anything you would normally close with Navigator.pop(context);

Get.back();

To go to the next screen and no option to go back to the previous screen (for use in SplashScreens, login screens, etc.)

Get.off(NextScreen());

To go to the next screen and cancel all previous routes (useful in shopping carts, polls, and tests)

Get.offAll(NextScreen());

Noticed that you didn't have to use context to do any of these things? That's one of the biggest advantages of using Get route management. With this, you can execute all these methods from within your controller class, without worries.

More details about route management

Get works with named routes and also offers lower-level control over your routes! There is in-depth documentation here

Dependency management

Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget:

Controller controller = Get.put(Controller()); // Rather Controller controller = Controller();
  • Note: If you are using Get's State Manager, pay more attention to the bindings API, which will make it easier to connect your view to your controller.

Instead of instantiating your class within the class you are using, you are instantiating it within the Get instance, which will make it available throughout your App. So you can use your controller (or class Bloc) normally

Tip: Get dependency management is decoupled from other parts of the package, so if for example, your app is already using a state manager (any one, it doesn't matter), you don't need to rewrite it all, you can use this dependency injection with no problems at all

controller.fetchApi();

Imagine that you have navigated through numerous routes, and you need data that was left behind in your controller, you would need a state manager combined with the Provider or Get_it, correct? Not with Get. You just need to ask Get to "find" for your controller, you don't need any additional dependencies:

Controller controller = Get.find();
//Yes, it looks like Magic, Get will find your controller, and will deliver it to you. You can have 1 million controllers instantiated, Get will always give you the right controller.

And then you will be able to recover your controller data that was obtained back there:

Text(controller.textFromApi);

More details about dependency management

See a more in-depth explanation of dependency management here

Utils

Internationalization

Translations

Translations are kept as a simple key-value dictionary map. To add custom translations, create a class and extend Translations.

import 'package:get/get.dart';

class Messages extends Translations {
  @override
  Map<String, Map<String, String>> get keys => {
        'en_US': {
          'hello': 'Hello World',
        },
        'de_DE': {
          'hello': 'Hallo Welt',
        }
      };
}

Using translations

Just append .tr to the specified key and it will be translated, using the current value of Get.locale and Get.fallbackLocale.

Text('title'.tr);

Using translation with singular and plural

var products = [];
Text('singularKey'.trPlural('pluralKey', products.length, Args));

Using translation with parameters

import 'package:get/get.dart';


Map<String, Map<String, String>> get keys => {
    'en_US': {
        'logged_in': 'logged in as @name with email @email',
    },
    'es_ES': {
       'logged_in': 'iniciado sesión como @name con e-mail @email',
    }
};

Text('logged_in'.trParams({
  'name': 'Jhon',
  'email': 'jhon@example.com'
  }));

Locales

Pass parameters to GetMaterialApp to define the locale and translations.

return GetMaterialApp(
    translations: Messages(), // your translations
    locale: Locale('en', 'US'), // translations will be displayed in that locale
    fallbackLocale: Locale('en', 'UK'), // specify the fallback locale in case an invalid locale is selected.
);

Change locale

Call Get.updateLocale(locale) to update the locale. Translations then automatically use the new locale.

var locale = Locale('en', 'US');
Get.updateLocale(locale);

System locale

To read the system locale, you could use Get.deviceLocale.

return GetMaterialApp(
    locale: Get.deviceLocale,
);

Change Theme

Please do not use any higher level widget than GetMaterialApp in order to update it. This can trigger duplicate keys. A lot of people are used to the prehistoric approach of creating a "ThemeProvider" widget just to change the theme of your app, and this is definitely NOT necessary with GetX™.

You can create your custom theme and simply add it within Get.changeTheme without any boilerplate for that:

Get.changeTheme(ThemeData.light());

If you want to create something like a button that changes the Theme in onTap, you can combine two GetX™ APIs for that:

  • The api that checks if the dark Theme is being used.
  • And the Theme Change API, you can just put this within an onPressed:
Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark());

When .darkmode is activated, it will switch to the light theme, and when the light theme becomes active, it will change to dark theme.

GetConnect

GetConnect is an easy way to communicate from your back to your front with http or websockets

Default configuration

You can simply extend GetConnect and use the GET/POST/PUT/DELETE/SOCKET methods to communicate with your Rest API or websockets.

class UserProvider extends GetConnect {
  // Get request
  Future<Response> getUser(int id) => get('http://youapi/users/$id');
  // Post request
  Future<Response> postUser(Map data) => post('http://youapi/users', body: data);
  // Post request with File
  Future<Response<CasesModel>> postCases(List<int> image) {
    final form = FormData({
      'file': MultipartFile(image, filename: 'avatar.png'),
      'otherFile': MultipartFile(image, filename: 'cover.png'),
    });
    return post('http://youapi/users/upload', form);
  }

  GetSocket userMessages() {
    return socket('https://yourapi/users/socket');
  }
}

Custom configuration

GetConnect is highly customizable You can define base Url, as answer modifiers, as Requests modifiers, define an authenticator, and even the number of attempts in which it will try to authenticate itself, in addition to giving the possibility to define a standard decoder that will transform all your requests into your Models without any additional configuration.

class HomeProvider extends GetConnect {
  @override
  void onInit() {
    // All request will pass to jsonEncode so CasesModel.fromJson()
    httpClient.defaultDecoder = CasesModel.fromJson;
    httpClient.baseUrl = 'https://api.covid19api.com';
    // baseUrl = 'https://api.covid19api.com'; // It define baseUrl to
    // Http and websockets if used with no [httpClient] instance

    // It's will attach 'apikey' property on header from all requests
    httpClient.addRequestModifier((request) {
      request.headers['apikey'] = '12345678';
      return request;
    });

    // Even if the server sends data from the country "Brazil",
    // it will never be displayed to users, because you remove
    // that data from the response, even before the response is delivered
    httpClient.addResponseModifier<CasesModel>((request, response) {
      CasesModel model = response.body;
      if (model.countries.contains('Brazil')) {
        model.countries.remove('Brazilll');
      }
    });

    httpClient.addAuthenticator((request) async {
      final response = await get("http://yourapi/token");
      final token = response.body['token'];
      // Set the header
      request.headers['Authorization'] = "$token";
      return request;
    });

    //Autenticator will be called 3 times if HttpStatus is
    //HttpStatus.unauthorized
    httpClient.maxAuthRetries = 3;
  }
  }

  @override
  Future<Response<CasesModel>> getCases(String path) => get(path);
}

GetPage Middleware

The GetPage has now new property that takes a list of GetMiddleWare and run them in the specific order.

Note: When GetPage has a Middlewares, all the children of this page will have the same middlewares automatically.

Priority

The Order of the Middlewares to run can be set by the priority in the GetMiddleware.

final middlewares = [
  GetMiddleware(priority: 2),
  GetMiddleware(priority: 5),
  GetMiddleware(priority: 4),
  GetMiddleware(priority: -8),
];

those middlewares will be run in this order -8 => 2 => 4 => 5

Redirect

This function will be called when the page of the called route is being searched for. It takes RouteSettings as a result to redirect to. Or give it null and there will be no redirecting.

RouteSettings redirect(String route) {
  final authService = Get.find<AuthService>();
  return authService.authed.value ? null : RouteSettings(name: '/login')
}

onPageCalled

This function will be called when this Page is called before anything created you can use it to change something about the page or give it new page

GetPage onPageCalled(GetPage page) {
  final authService = Get.find<AuthService>();
  return page.copyWith(title: 'Welcome ${authService.UserName}');
}

OnBindingsStart

This function will be called right before the Bindings are initialize. Here you can change Bindings for this page.

List<Bindings> onBindingsStart(List<Bindings> bindings) {
  final authService = Get.find<AuthService>();
  if (authService.isAdmin) {
    bindings.add(AdminBinding());
  }
  return bindings;
}

OnPageBuildStart

This function will be called right after the Bindings are initialize. Here you can do something after that you created the bindings and before creating the page widget.

GetPageBuilder onPageBuildStart(GetPageBuilder page) {
  print('bindings are ready');
  return page;
}

OnPageBuilt

This function will be called right after the GetPage.page function is called and will give you the result of the function. and take the widget that will be showed.

OnPageDispose

This function will be called right after disposing all the related objects (Controllers, views, ...) of the page.

Other Advanced APIs

// give the current args from currentScreen
Get.arguments

// give name of previous route
Get.previousRoute

// give the raw route to access for example, rawRoute.isFirst()
Get.rawRoute

// give access to Routing API from GetObserver
Get.routing

// check if snackbar is open
Get.isSnackbarOpen

// check if dialog is open
Get.isDialogOpen

// check if bottomsheet is open
Get.isBottomSheetOpen

// remove one route.
Get.removeRoute()

// back repeatedly until the predicate returns true.
Get.until()

// go to next route and remove all the previous routes until the predicate returns true.
Get.offUntil()

// go to next named route and remove all the previous routes until the predicate returns true.
Get.offNamedUntil()

//Check in what platform the app is running
GetPlatform.isAndroid
GetPlatform.isIOS
GetPlatform.isMacOS
GetPlatform.isWindows
GetPlatform.isLinux
GetPlatform.isFuchsia

//Check the device type
GetPlatform.isMobile
GetPlatform.isDesktop
//All platforms are supported independently in web!
//You can tell if you are running inside a browser
//on Windows, iOS, OSX, Android, etc.
GetPlatform.isWeb


// Equivalent to : MediaQuery.of(context).size.height,
// but immutable.
Get.height
Get.width

// Gives the current context of the Navigator.
Get.context

// Gives the context of the snackbar/dialog/bottomsheet in the foreground, anywhere in your code.
Get.contextOverlay

// Note: the following methods are extensions on context. Since you
// have access to context in any place of your UI, you can use it anywhere in the UI code

// If you need a changeable height/width (like Desktop or browser windows that can be scaled) you will need to use context.
context.width
context.height

// Gives you the power to define half the screen, a third of it and so on.
// Useful for responsive applications.
// param dividedBy (double) optional - default: 1
// param reducedBy (double) optional - default: 0
context.heightTransformer()
context.widthTransformer()

/// Similar to MediaQuery.of(context).size
context.mediaQuerySize()

/// Similar to MediaQuery.of(context).padding
context.mediaQueryPadding()

/// Similar to MediaQuery.of(context).viewPadding
context.mediaQueryViewPadding()

/// Similar to MediaQuery.of(context).viewInsets;
context.mediaQueryViewInsets()

/// Similar to MediaQuery.of(context).orientation;
context.orientation()

/// Check if device is on landscape mode
context.isLandscape()

/// Check if device is on portrait mode
context.isPortrait()

/// Similar to MediaQuery.of(context).devicePixelRatio;
context.devicePixelRatio()

/// Similar to MediaQuery.of(context).textScaleFactor;
context.textScaleFactor()

/// Get the shortestSide from screen
context.mediaQueryShortestSide()

/// True if width be larger than 800
context.showNavbar()

/// True if the shortestSide is smaller than 600p
context.isPhone()

/// True if the shortestSide is largest than 600p
context.isSmallTablet()

/// True if the shortestSide is largest than 720p
context.isLargeTablet()

/// True if the current device is Tablet
context.isTablet()

/// Returns a value<T> according to the screen size
/// can give value for:
/// watch: if the shortestSide is smaller than 300
/// mobile: if the shortestSide is smaller than 600
/// tablet: if the shortestSide is smaller than 1200
/// desktop: if width is largest than 1200
context.responsiveValue<T>()

Optional Global Settings and Manual configurations

GetMaterialApp configures everything for you, but if you want to configure Get manually.

MaterialApp(
  navigatorKey: Get.key,
  navigatorObservers: [GetObserver()],
);

You will also be able to use your own Middleware within GetObserver, this will not influence anything.

MaterialApp(
  navigatorKey: Get.key,
  navigatorObservers: [
    GetObserver(MiddleWare.observer) // Here
  ],
);

You can create Global Settings for Get. Just add Get.config to your code before pushing any route. Or do it directly in your GetMaterialApp

GetMaterialApp(
  enableLog: true,
  defaultTransition: Transition.fade,
  opaqueRoute: Get.isOpaqueRouteDefault,
  popGesture: Get.isPopGestureEnable,
  transitionDuration: Get.defaultDurationTransition,
  defaultGlobalState: Get.defaultGlobalState,
);

Get.config(
  enableLog = true,
  defaultPopGesture = true,
  defaultTransition = Transitions.cupertino
)

You can optionally redirect all the logging messages from Get. If you want to use your own, favourite logging package, and want to capture the logs there:

GetMaterialApp(
  enableLog: true,
  logWriterCallback: localLogWriter,
);

void localLogWriter(String text, {bool isError = false}) {
  // pass the message to your favourite logging package here
  // please note that even if enableLog: false log messages will be pushed in this callback
  // you get check the flag if you want through GetConfig.isLogEnable
}

Local State Widgets

These Widgets allows you to manage a single value, and keep the state ephemeral and locally. We have flavours for Reactive and Simple. For instance, you might use them to toggle obscureText in a TextField, maybe create a custom Expandable Panel, or maybe modify the current index in BottomNavigationBar while changing the content of the body in a Scaffold.

ValueBuilder

A simplification of StatefulWidget that works with a .setState callback that takes the updated value.

ValueBuilder<bool>(
  initialValue: false,
  builder: (value, updateFn) => Switch(
    value: value,
    onChanged: updateFn, // same signature! you could use ( newValue ) => updateFn( newValue )
  ),
  // if you need to call something outside the builder method.
  onUpdate: (value) => print("Value updated: $value"),
  onDispose: () => print("Widget unmounted"),
),

ObxValue

Similar to ValueBuilder, but this is the Reactive version, you pass a Rx instance (remember the magical .obs?) and updates automatically... isn't it awesome?

ObxValue((data) => Switch(
        value: data.value,
        onChanged: data, // Rx has a _callable_ function! You could use (flag) => data.value = flag,
    ),
    false.obs,
),

Useful tips

.observables (also known as Rx Types) have a wide variety of internal methods and operators.

Is very common to believe that a property with .obs IS the actual value... but make no mistake! We avoid the Type declaration of the variable, because Dart's compiler is smart enough, and the code looks cleaner, but:

var message = 'Hello world'.obs;
print( 'Message "$message" has Type ${message.runtimeType}');

Even if message prints the actual String value, the Type is RxString!

So, you can't do message.substring( 0, 4 ). You have to access the real value inside the observable: The most "used way" is .value, but, did you know that you can also use...

final name = 'GetX'.obs;
// only "updates" the stream, if the value is different from the current one.
name.value = 'Hey';

// All Rx properties are "callable" and returns the new value.
// but this approach does not accepts `null`, the UI will not rebuild.
name('Hello');

// is like a getter, prints 'Hello'.
name() ;

/// numbers:

final count = 0.obs;

// You can use all non mutable operations from num primitives!
count + 1;

// Watch out! this is only valid if `count` is not final, but var
count += 1;

// You can also compare against values:
count > 2;

/// booleans:

final flag = false.obs;

// switches the value between true/false
flag.toggle();


/// all types:

// Sets the `value` to null.
flag.nil();

// All toString(), toJson() operations are passed down to the `value`
print( count ); // calls `toString()` inside  for RxInt

final abc = [0,1,2].obs;
// Converts the value to a json Array, prints RxList
// Json is supported by all Rx types!
print('json: ${jsonEncode(abc)}, type: ${abc.runtimeType}');

// RxMap, RxList and RxSet are special Rx types, that extends their native types.
// but you can work with a List as a regular list, although is reactive!
abc.add(12); // pushes 12 to the list, and UPDATES the stream.
abc[3]; // like Lists, reads the index 3.


// equality works with the Rx and the value, but hashCode is always taken from the value
final number = 12.obs;
print( number == 12 ); // prints > true

/// Custom Rx Models:

// toJson(), toString() are deferred to the child, so you can implement override on them, and print() the observable directly.

class User {
    String name, last;
    int age;
    User({this.name, this.last, this.age});

    @override
    String toString() => '$name $last, $age years old';
}

final user = User(name: 'John', last: 'Doe', age: 33).obs;

// `user` is "reactive", but the properties inside ARE NOT!
// So, if we change some variable inside of it...
user.value.name = 'Roi';
// The widget will not rebuild!,
// `Rx` don't have any clue when you change something inside user.
// So, for custom classes, we need to manually "notify" the change.
user.refresh();

// or we can use the `update()` method!
user.update((value){
  value.name='Roi';
});

print( user );

StateMixin

Another way to handle your UI state is use the StateMixin<T> . To implement it, use the with to add the StateMixin<T> to your controller which allows a T model.

class Controller extends GetController with StateMixin<User>{}

The change() method change the State whenever we want. Just pass the data and the status in this way:

change(data, status: RxStatus.success());

RxStatus allow these status:

RxStatus.loading();
RxStatus.success();
RxStatus.empty();
RxStatus.error('message');

To represent it in the UI, use:

class OtherClass extends GetView<Controller> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(

      body: controller.obx(
        (state)=>Text(state.name),
        
        // here you can put your custom loading indicator, but
        // by default would be Center(child:CircularProgressIndicator())
        onLoading: CustomLoadingIndicator(),
        onEmpty: Text('No data found'),

        // here also you can set your own error widget, but by
        // default will be an Center(child:Text(error))
        onError: (error)=>Text(error),
      ),
    );
}

GetView

I love this Widget, is so simple, yet, so useful!

Is a const Stateless Widget that has a getter controller for a registered Controller, that's all.

 class AwesomeController extends GetController {
   final String title = 'My Awesome View';
 }

  // ALWAYS remember to pass the `Type` you used to register your controller!
 class AwesomeView extends GetView<AwesomeController> {
   @override
   Widget build(BuildContext context) {
     return Container(
       padding: EdgeInsets.all(20),
       child: Text(controller.title), // just call `controller.something`
     );
   }
 }

GetResponsiveView

Extend this widget to build responsive view. this widget contains the screen property that have all information about the screen size and type.

How to use it

You have two options to build it.

  • with builder method you return the widget to build.
  • with methods desktop, tablet,phone, watch. the specific method will be built when the screen type matches the method when the screen is [ScreenType.Tablet] the tablet method will be exuded and so on. Note: If you use this method please set the property alwaysUseBuilder to false

With settings property you can set the width limit for the screen types.

example Code to this screen code

GetWidget

Most people have no idea about this Widget, or totally confuse the usage of it. The use case is very rare, but very specific: It caches a Controller. Because of the cache, can't be a const Stateless.

So, when do you need to "cache" a Controller?

If you use, another "not so common" feature of GetX: Get.create().

Get.create(()=>Controller()) will generate a new Controller each time you call Get.find<Controller>(),

That's where GetWidget shines... as you can use it, for example, to keep a list of Todo items. So, if the widget gets "rebuilt", it will keep the same controller instance.

GetxService

This class is like a GetxController, it shares the same lifecycle ( onInit(), onReady(), onClose()). But has no "logic" inside of it. It just notifies GetX Dependency Injection system, that this subclass can not be removed from memory.

So is super useful to keep your "Services" always reachable and active with Get.find(). Like: ApiService, StorageService, CacheService.

Future<void> main() async {
  await initServices(); /// AWAIT SERVICES INITIALIZATION.
  runApp(SomeApp());
}

/// Is a smart move to make your Services intiialize before you run the Flutter app.
/// as you can control the execution flow (maybe you need to load some Theme configuration,
/// apiKey, language defined by the User... so load SettingService before running ApiService.
/// so GetMaterialApp() doesnt have to rebuild, and takes the values directly.
void initServices() async {
  print('starting services ...');
  /// Here is where you put get_storage, hive, shared_pref initialization.
  /// or moor connection, or whatever that's async.
  await Get.putAsync(() => DbService().init());
  await Get.putAsync(SettingsService()).init();
  print('All services started...');
}

class DbService extends GetxService {
  Future<DbService> init() async {
    print('$runtimeType delays 2 sec');
    await 2.delay();
    print('$runtimeType ready!');
    return this;
  }
}

class SettingsService extends GetxService {
  void init() async {
    print('$runtimeType delays 1 sec');
    await 1.delay();
    print('$runtimeType ready!');
  }
}

The only way to actually delete a GetxService, is with Get.reset() which is like a "Hot Reboot" of your app. So remember, if you need absolute persistence of a class instance during the lifetime of your app, use GetxService.

Tests

You can test your controllers like any other class, including their lifecycles:

class Controller extends GetxController {
  @override
  void onInit() {
    super.onInit();
    //Change value to name2
    name.value = 'name2';
  }

  @override
  void onClose() {
    name.value = '';
    super.onClose();
  }

  final name = 'name1'.obs;

  void changeName() => name.value = 'name3';
}

void main() {
  test('''
Test the state of the reactive variable "name" across all of its lifecycles''',
      () {
    /// You can test the controller without the lifecycle,
    /// but it's not recommended unless you're not using
    ///  GetX dependency injection
    final controller = Controller();
    expect(controller.name.value, 'name1');

    /// If you are using it, you can test everything,
    /// including the state of the application after each lifecycle.
    Get.put(controller); // onInit was called
    expect(controller.name.value, 'name2');

    /// Test your functions
    controller.changeName();
    expect(controller.name.value, 'name3');

    /// onClose was called
    Get.delete<Controller>();

    expect(controller.name.value, '');
  });
}

Tips

Mockito or mocktail

If you need to mock your GetxController/GetxService, you should extend GetxController, and mixin it with Mock, that way

class NotificationServiceMock extends GetxService with Mock implements NotificationService {}
Using Get.reset()

If you are testing widgets, or test groups, use Get.reset at the end of your test or in tearDown to reset all settings from your previous test.

Get.testMode

if you are using your navigation in your controllers, use Get.testMode = true at the beginning of your main.

Breaking changes from 2.0

1- Rx types:

Before After
StringX RxString
IntX RxInt
MapX RxMap
ListX RxList
NumX RxNum
DoubleX RxDouble

RxController and GetBuilder now have merged, you no longer need to memorize which controller you want to use, just use GetxController, it will work for simple state management and for reactive as well.

2- NamedRoutes Before:

GetMaterialApp(
  namedRoutes: {
    '/': GetRoute(page: Home()),
  }
)

Now:

GetMaterialApp(
  getPages: [
    GetPage(name: '/', page: () => Home()),
  ]
)

Why this change? Often, it may be necessary to decide which page will be displayed from a parameter, or a login token, the previous approach was inflexible, as it did not allow this. Inserting the page into a function has significantly reduced the RAM consumption, since the routes will not be allocated in memory since the app was started, and it also allowed to do this type of approach:


GetStorage box = GetStorage();

GetMaterialApp(
  getPages: [
    GetPage(name: '/', page:(){
      return box.hasData('token') ? Home() : Login();
    })
  ]
)

Why Getx?

1- Many times after a Flutter update, many of your packages will break. Sometimes compilation errors happen, errors often appear that there are still no answers about, and the developer needs to know where the error came from, track the error, only then try to open an issue in the corresponding repository, and see its problem solved. Get centralizes the main resources for development (State, dependency and route management), allowing you to add a single package to your pubspec, and start working. After a Flutter update, the only thing you need to do is update the Get dependency, and get to work. Get also resolves compatibility issues. How many times a version of a package is not compatible with the version of another, because one uses a dependency in one version, and the other in another version? This is also not a concern using Get, as everything is in the same package and is fully compatible.

2- Flutter is easy, Flutter is incredible, but Flutter still has some boilerplate that may be unwanted for most developers, such as Navigator.of(context).push (context, builder [...]. Get simplifies development. Instead of writing 8 lines of code to just call a route, you can just do it: Get.to(Home()) and you're done, you'll go to the next page. Dynamic web urls are a really painful thing to do with Flutter currently, and that with GetX is stupidly simple. Managing states in Flutter, and managing dependencies is also something that generates a lot of discussion, as there are hundreds of patterns in the pub. But there is nothing as easy as adding a ".obs" at the end of your variable, and place your widget inside an Obx, and that's it, all updates to that variable will be automatically updated on the screen.

3- Ease without worrying about performance. Flutter's performance is already amazing, but imagine that you use a state manager, and a locator to distribute your blocs/stores/controllers/ etc. classes. You will have to manually call the exclusion of that dependency when you don't need it. But have you ever thought of simply using your controller, and when it was no longer being used by anyone, it would simply be deleted from memory? That's what GetX does. With SmartManagement, everything that is not being used is deleted from memory, and you shouldn't have to worry about anything but programming. You will be assured that you are consuming the minimum necessary resources, without even having created a logic for this.

4- Actual decoupling. You may have heard the concept "separate the view from the business logic". This is not a peculiarity of BLoC, MVC, MVVM, and any other standard on the market has this concept. However, this concept can often be mitigated in Flutter due to the use of context. If you need context to find an InheritedWidget, you need it in the view, or pass the context by parameter. I particularly find this solution very ugly, and to work in teams we will always have a dependence on View's business logic. Getx is unorthodox with the standard approach, and while it does not completely ban the use of StatefulWidgets, InitState, etc., it always has a similar approach that can be cleaner. Controllers have life cycles, and when you need to make an APIREST request for example, you don't depend on anything in the view. You can use onInit to initiate the http call, and when the data arrives, the variables will be populated. As GetX is fully reactive (really, and works under streams), once the items are filled, all widgets that use that variable will be automatically updated in the view. This allows people with UI expertise to work only with widgets, and not have to send anything to business logic other than user events (like clicking a button), while people working with business logic will be free to create and test the business logic separately.

This library will always be updated and implementing new features. Feel free to offer PRs and contribute to them.

Community

Community channels

GetX has a highly active and helpful community. If you have questions, or would like any assistance regarding the use of this framework, please join our community channels, your question will be answered more quickly, and it will be the most suitable place. This repository is exclusive for opening issues, and requesting resources, but feel free to be part of GetX Community.

Slack Discord Telegram
Get on Slack Discord Shield Telegram

How to contribute

Want to contribute to the project? We will be proud to highlight you as one of our collaborators. Here are some points where you can contribute and make Get (and Flutter) even better.

  • Helping to translate the readme into other languages.
  • Adding documentation to the readme (a lot of Get's functions haven't been documented yet).
  • Write articles or make videos teaching how to use Get (they will be inserted in the Readme and in the future in our Wiki).
  • Offering PRs for code/tests.
  • Including new functions.

Any contribution is welcome!

Articles and videos

Changelog

[4.7.3]

Fix Snackbar in Flutter 3.38

[4.7.2]

Fix PopScope widget

[4.7.1]

Fix super parameters bug in GetConnect

[4.7.0]

Added wasm support to give people still using version 4 a longer lifespan. Version 5 is being moved to stable, but many people are still relying on version 4.

[4.6.6]

Fix route not disposing in flutter 3.13

[4.6.5]

Fix pub dev score

[4.6.4]

Added backward compatibility with flutter 2.

[4.6.3]

Fix SDK constraints

[4.6.2]

Added compatibility with flutter 3.0

[4.6.1]

Fix GetConnect on Flutter web

[4.6.0]

Add useInheritedMediaQuery to GetMaterialApp and GetCupertinoApp (@davidhole) Add Circular reveal Transition (@parmarravi) Add request to failed response (@heftekharm) Fix internationalization with only country code (@codercengiz) Add GetTickerProviderStateMixin when multiple AnimationController objects are used (@NatsuOnFire) Add the followRedirects and maxRedirects fields to the Request object (@wei53881) Fix to rx.trigger fires twice (@gslender) Add proxy setting support to GetConnect (@jtans) Fix markAsDirty used on permanent controllers (@zenalex) Update Korean readme (@dumbokim)

[4.5.1]

Fix Snackbar when it have action and icon the same time

[4.5.0] - Big Update

To have a page-agnostic snackbar, we used OverlayRoute to display a partial route. However this had several problems:

1: There was no possibility to close the page without closing the snackbar 2: Get.back() could cause problems with tests of Get.isSnackbarOpen not being properly invoked 3: Sometimes when using iOS popGesture with an open snackbar, some visual inconsistency might appear. 4: When going to another route, the snackbar was not displayed on the new page, and if the user clicked on the new route as soon as he received a Snackbar, he could not read it.

We remade the Snackbar from scratch, having its Api based on Overlay, and now opening a Snackbar won't be tied to a route, you can normally navigate routes while a Snackbar is shown at the top (or bottom), and even the PopGesture of the iOS is not influenced by it.

Using Get.back() is handy, it's a small command, which closes routes, dialogs, snackbars, bottomsheets, etc, however Getx 5 will prioritize code safety, and splitting will reduce the check code as well. Currently we have to check if a snackbar is open, to close the snackbar and prevent the app from going back a page, all this boilerplate code will be removed, at the cost of having what it closes in front of Get.back command.

For backwards compatibility, Get.back() still works for closing routes and overlays, however two new commands have been added: Get.closeCurrentSnackbar() and Get.closeAllSnackbars(). Maybe we will have a clearer api in GetX 5, and maybe Get.back() will continue to do everything like it does today. The community will be consulted about the desired api. However version 5 will definitely have commands like: Get.closeCurrentSnackbar, Get.closeCurrentDialog etc. There is also the possibility to close a specific snackbar using the return of Get.snackbar, which will no longer return a void, and now return a SnackbarController.

Snackbars now also have a Queue, and no longer stack one on top of the other, preventing viewing. GetX now has flexible, customizable, route-independent, and completely stable Snackbars.

Fixed bugs where the snackbar showed an error in debug mode for a fraction of a second. We found that Flutter has a bug with blur below 0.001, so we set the minimum overlayBlur value to this value if it is ==true.

Errors with internationalization were also fixed, where if you are in UK, and the app had the en_US language, you didn't have American English by default. Now, if the country code is not present, it will automatically fetch the language code before fetching a fallbackLanguage.

Update locale also now returns a Future, allowing you to perform an action only when the language has already changed (@MHosssam)

We are very happy to announce that GetX is now documented in Japanese as well, thanks to (@toshi-kuji)

GetX has always been focused on transparency. You can tell what's going on with your app just by reading the logs on the console. However, these logs shouldn't appear in production, so it now only appears in debug mode (@maxzod)

@maxzod has also started translating the docs into Arabic, we hope the documentation will be complete soon.

Some remaining package logs have been moved to Get.log (@gairick-saha)

RxList.removeWhere received performance optimizations (@zuvola)

Optimizations in GetConnect and added the ability to modify all request items in GetConnect (@rodrigorahman)

The current route could be inconsistent if a dialog were opened after a transition, fixed by @xiangzy1

Fixed try/catch case missed in socket_notifier (@ShookLyngs)

Also we had fixes in the docs: @DeathGun3344 @pinguluk

GetX also surpassed the incredible mark of more than 7000 likes, being the most liked package in all pub.dev, went from 99% to 100% popularity, and has more than 5.3k stars on github. Documentation is now available in 12 languages, and we're happy for all the engagement from your community.

This update is a preparation update for version 5, which will be released later this year.

Breaking and Depreciation: GetBar is now deprecated, use GetSnackbar instead. dismissDirection now gets a DismissDirection, making the Snackbar more customizable.

[4.3.8]

  • Fix nav2 toNamed remove the route

[4.3.7]

  • Fix wrong currentRoute when a route is removed
  • Remove take that limits the router outlet depth (@steven-spiel)

[4.3.6]

  • Fix error with autodispose of additional dependencies beyond GetxController
  • Added ability to add your own delegate to RouterOutlet (@steven-spiel)
  • Added listenAndPump to Rx to give Rx the same behavior as BehaviorSubject (@steven-spiel)

[4.3.5]

  • Fix GetConnect timeout (@jasonlaw)
  • Improve Vietnamese docs (@hp1909)
  • Refactor placeholder name route to unnamed routes (@roipeker).
  • Fix: Navigate to a page identical to Get.offNamed.
  • Fix: Wrong nameRoute after a route is removed
  • Added assert to prevent the user from starting a route name without slash.

[4.3.4]

  • Improve docs

[4.3.3]

  • Fix Get.reset

[4.3.2]

  • Fix nullable on internacionalization (@jmguillens)
  • Fix nullable on Rx.stream (@steven-spiel)

[4.3.1]

  • Fix controller is not removed when keyboard is open.
  • Improved: Safe removal and insertion of controllers.

[4.3.0]

  • Added GetResponsiveWidget (@ahmednfwela)
  • Added Get.replace() (@jwelmac)
  • Added Improve korean doc (@sejun2)
  • Fix multiple middlewares redirect (@liasica)
  • Added gestureWidth and showCupertinoParallax to GetPage to customize cupertino transitions

[4.2.5]

  • Added anchorRoute and filterPages to GetRouterOutlet (@ahmednfwela)
  • Added scrollBehavior and scaffoldMessengerKey to GetMaterialapp(@ejabu and @alionour)
  • Fix error when child on MaterialApp is null (@ahmednfwela)
  • Fix Korean docs (@rws08)
  • Fix error with onClose called before routeTransition on Get.offNamed

[4.2.4]

  • Fix Get.offAll removing GetxServices from memory

[4.2.3]

  • Fix back button on navigator 2
  • Added parameters and arguments to Get.rootDelegate

[4.2.1]

  • Remove [] from docs to try fix pub score

[4.2.0] - Big update

This update fixes important bugs as well as integrates with Navigator 2. It also adds GetRouterOutlet, similar to angular RouterOutlet thanks to @ahmednfwela. Also, the documentation translation for Vietnamese (@khangahs) has been added, making the GetX documentation available for 11 different languages, which is just fantastic for any opensource project. GetX has achieved more than 5.4k likes from the pub, and more than 4k stars on github, has videos about it with 48k on youtube, and has communities in the 4 hemispheres of the earth, besides having a large list of contributors as you see bellow. We're all happy to facilitate development with dart and flutter, and that making programming hassle-free has been taken around the world.

Changes in this version:

  • Fix: Navigating to the same page with Get.offNamed does not delete the controller from that page using Get.lazyPut.

  • Fix Readme GetMiddleware typos by @nivisi

  • Fix url replace error by @KevinZhang19870314

  • Changed response default encoding from latin1 to utf8 by @heftekharm

  • Add Duration in ExtensionBottomSheet by @chanonpingpong

  • Added compatibility with dart-lang/mockito by @lifez

  • Added extensions methods to convert value in percent value by @kauemurakami

  • Set darkTheme equal theme when darkTheme is null by @eduardoFlorence

  • Add padding to 'defaultDialog' by @KevinZhang19870314

  • GraphQLResponse inherit Response info by @jasonlaw

  • Fix Redundant concatenating base url by @jasonlaw

  • Add content type and length into the headers when the content type is 'application/x-www-form-urlencoded' by @calvingit

  • Make withCredentials configurable by @jasonlaw

  • Fix flutter 2.0 error by @yunchiri

  • Allow deleting all registered instances by @lemps

  • Refactor/rx interface notify children @by kranfix

  • Fixed parameter parsing and middleware sorting by @ahmednfwela

  • Improvements to router outlet by @ahmednfwela

  • Minor improvements and bug fixes by @ahmednfwela

  • Adding route guards and improving navigation by @ahmednfwela

  • Fix RxInterface.proxy losing its previous value on exception by @WillowWisp

  • Added dispose() for bottomSheet. by @furkankurt

  • Added Pull request template by @unacorbatanegra

  • Fix and update documentation: @Farid566, @galaxykhh, @arslee07, @GoStaRoff, @BondarenkoArtur, @denisrudnei, @Charly6596, @nateshmbhat, @hrithikrtiwari, @Undeadlol1, @rws08, @inuyashaaa, @broccolism, @aadarshadhakalg, @ZeroMinJeon

[4.1.4]

  • Adjust operator + and - to RxInt (@eduardoflorence)
  • Fix dark theme (@eduardoflorence)
  • Fix form-urlencoded on GetConnect (@aramayyes)

[4.1.3]

  • Fix "Error: A value of type 'Locale?' can't be returned from a function"on flutter web (@nickwri)
  • Fix plural translations to expressions >1 (@WolfVic)

[4.1.2]

  • Fix warning ˜can add data to a closed stream˜ when GetBuilder and Obx are nested
  • Fix get_connect decoder can not be null (@Goddchen)
  • Migrate example code (@3lB4rt0)
  • Fix initial value of nullables (@RafaRuiz)
  • Improve error message to navigation (@maxzod)
  • Fix typo on docs (@Rahulshahare)
  • Fixed darktheme being changed only through Get.changeTheme and not through the DarkTheme theme property in MaterialApp (@GoldenSoju)
  • Fix controller is removed when navigate to same page (@eduardoflorence)
  • Fix missing reload() and reloadAll() to Get extensions (@lkloon123)

[4.1.1]

  • Remove mandatory initialValue to nullables types

[4.1.0]

  • Added Rxn to non nullables reactives types

[4.0.3]

  • Added new linter rules to improve score

[4.0.2]

  • Removed "!" of if else conditions until the null-safety of the dart is consistent for using it.

[4.0.1]

  • Fix changelog

[4.0.0]

  • Added append function to StateMixin. Now is possible track loading, success and error handle of your application with ONE LINE OF CODE. Ex: append(()=> api.getUser);
  • Migrate to null-safety
  • Added ScrollMixin to controllers
  • Added loadingMore status to RxStatus
  • Fix content-type qual null (@katekko)
  • Made GetInstance non nullable (@eduardoflorence)
  • Fix multi-parameters url (@iMrLopez)
  • Fix Expected value of SkDeletable error (@obadajasm)
  • Added triggers, an Rx method that triggers events, even if they are the same as the previous event (@RafaRuiz)
  • Improve docs: (@CNAD666), (@dhhAndroid), (@Jackylee1992),

Switching to null-safety: You can continue using GetX as normal, with as little breaking changes as possible. It is still possible to declare the var.obs variable, and this remains the preferred way, forcing null-safety and giving you all the security that sound null-safety delivers to your app. However, if you need to use null, we also provide a solution for you. Declare the variables with ? Ex: final Rx<int?> count = 0.obs. You can also use custom Rxn types with null-safety: RxInt == not nullable RxnInt == nullable.

[3.25.6]

  • Added documentation in French (@kamazoun)
  • Fix logs messages (@damphat)
  • Fix plural to zero on internacionalization (@RafaRuiz)
  • Fix error when body hasn't content on GetConnect (@jasonlaw)
  • Fix typos on readme (@bashleigh)
  • Fix group updates to GetBuilder

[3.25.5]

  • Fix Get.isDialogOpen when two or more open dialogs are closed

[3.25.4]

  • Added logs and tests to unknownRoute

[3.25.3]

  • Fix bindStream error 'Object.noSuchMethod'.

[3.25.2]

  • Improved Workers system to accept a list of works

[3.25.1]

  • Improved the log system to display the tag used in the controller that was created.

[3.25.0] - Big update

  • Added [reload] and [reloadAll] methods to reload your Controller to original values
  • Added [FullLifeCycleController] - A GetxController capable of observing all the life cycles of your application. FullLifeCycleController has the life cycles:
    • onInit: called when the controller enters the application's memory
    • onReady: called after onInit, when build method from widget relationed to controller is done.
    • onClose: called when controller is deleted from memory.
    • onPaused: called when the application is not currently visible to the user, and running in the background.
    • onInactive: called when the application is in an inactive state and is not receiving user input, when the user receives a call, for example
    • onResumed: The application is now visible and in the foreground
    • onDetached: The application is still hosted on a flutter engine but is detached from any host views.
    • didChangeMetrics: called when the window size is changed
  • Added SuperController, a complete life circle controller with StateMixin
  • Improve Iterable Rx Api. Now, you can to use dart List, Map and Set as reactive, like: List names = ['juan', 'pedro', 'maria'].obs;
  • Added assign and assignAll extensions to default dart List
  • Added parameters options from Get.toNamed, Get.offNamed, and Get.offAllNamed (@enghitalo)
  • Improve Rx disposal logic to completely prevent memory leaks
  • Improve Capitalize methods from GetUtils (@eduardoflorence)
  • Prevent a close snackbar from close a Screen with double tap (@eduardoflorence)
  • Includes GetLifeCycleBase mixin on delete/dispose (@saviogrossi)
  • Added internacionalization example to sample app (@rodriguesJeff)
  • Added headers to Graphql query and mutation(@asalvi0)
  • Added translation with parameter extension (@CpdnCristiano)
  • Added Get.parameter access to Middleware (@eduardoflorence)
  • Fix RxBool typo (@emanuelmutschlechner)
  • Added Filter to GetBuilder
  • Added debouce to GetBuilder update
  • Added ability to insert an Enum, class, or type of an object as a GetBuilder's Id
  • Improve upload time from GetConnect
  • Create minified version to DartPad(@roipeker)
  • Suggested to use Get.to(() => Page()) instead of Get.to(Page()).
  • Added more status codes to GetConnect (@romavic)
  • Fix and improve docs: @unacorbatanegra, @lsm, @nivisi, @ThinkDigitalSoftware, @martwozniak, @UsamaElgendy, @@DominusKelvin, @jintak0401, @goondeal

[3.24.0]

  • GetWidget has been completely redesigned. Throughout its lifetime, GetWidget has always been mentioned in the documentation as "something you shouldn't use unless you're sure you need it", and it had a very small use case. A short time ago we realized that it could have some unexpected behaviors, when compared to GetView, so we decided to rebuild it from scratch, creating a really useful widget for the ecosystem. Objectively, GetWidget is now a Widget that caches the controller and protects children from their parents' reconstructions. This means that if you have a ListView or gridview, you can add items to it without the child (being a GetWidget) being rebuilt. The api is now more concise, as you can use Get.put / Get.lazyput for global dependencies, and Get.create with GetWidget for ephemeral dependencies, or when you need several identical controllers for the same widget, eliminating the need for tags for most cases.

  • Workers now have error handlers, so if an error occurs in your stream, you can recover it from your workers.

  • isTrue and isFalse setters were added to [RxBool], this will make the code more readable, and will mitigate the use of ".value" in Booleans.

  • [Patch] method was added in GetConnect.

  • Native methods for RxString (trim, contains, startWith, etc.) have been added.

  • Standard constructors for RxList and RxMap have been added (RxList.generate, RxList.from, Map.of, Map.from, etc).

  • Added "onEmpty" status in StateMixin (@alizera)

  • Added query and mutation methods of graphql for getconnect.

  • Added body string for content-type application/x-www-form-urlencoded on GetConnect (@eduardoflorence)

[3.23.1]

  • Fix allowSelfSigned on Flutter web

[3.23.0]

  • Add GetResponsive (@SchabanBo)
  • Update tests, fix predicate for offNamedUntil (@vbuberen)
  • Added Urdu Version for Pakistani Developers (@UsamaSarwar)
  • Handle for List field with native datatype on GetConnect(@jasonlaw)
  • Added WillPopScope to defaultDialog (@rakeshlanjewar)
  • Fix optional query params not attach on createUri from GetConnect (@reinaldowebdev)
  • Effective Get.testMode from navigator on tests (@eduardoflorence)
  • Fix Navigator 2.0 on GetMaterialApp and CupertinoMaterialApp (@SchabanBo)
  • Added Middlewares with initial Routes (@SchabanBo)
  • Improve PT-br Docs (@eduardoflorence)
  • Added the allowSelfSigned parameter to GetSocket(@eduardoflorence)
  • Added Indonesian version to Indonesian Developers (@pratamatama)

[3.22.2]

  • Fix overlayEntries is null on Master/Dev branch of Flutter

[3.22.1]

  • Improve: auto jsonDecode occurs only if response.header.contentType is "application/json"
  • Improve and fix requests types (@eduardoflorence)
  • Fix HeaderValue variables with same name (@haidang93)

[3.22.0]

  • Added: more multipart options. Now you can send as multipart:

File: 'file':MultipartFile(File('./images/avatar.png'), filename: 'avatar.png'),

String path: 'file':MultipartFile('./images/avatar.png', filename: 'avatar.png'),

Or bytes (Flutter web work only with bytes): 'file':MultipartFile(File('file').readAsBytesSync(), filename: 'avatar.png'),

  • Added: Upload Progress to MultipartRequest
  • Added support to List (@jasonlaw)

[3.21.3]

  • Improve multipart file and defaultDecoder on GetConnect

[3.21.2]

  • Fix GetConnect.request returning a PUT request

[3.21.1]

  • Allow null body to POST method on GetConnect

[3.21.0] - Big update

  • This update attaches two nice features developed by (@SchabanBo): GetPage Children And GetMiddleware In previous versions, to create child pages, you should do something like:
GetPage(
  name: '/home',
  page: () => HomeView(),
  binding: HomeBinding(),
),
GetPage(
  name: '/home/products',
  page: () => ProductsView(),
  binding: ProductsBinding(),
),
GetPage(
  name: '/home/products/electronics',
  page: () => ElectronicsView(),
  binding: ElectronicsBinding(),
),

Although the feature works well, it could be improved in several ways: 1- If you had many pages, the page file could become huge and difficult to read. Besides, it was difficult to know which page was the daughter of which module. 2- It was not possible to delegate the function of naming routes to a subroutine file. With this update, it is possible to create a declarative structure, very similar to the Flutter widget tree for your route, which might look like this:

GetPage(
      name: '/home',
      page: () => HomeView(),
      binding: HomeBinding(),
      children: [
        GetPage(
            name: '/products',
            page: () => ProductsView(),
            binding: ProductsBinding(),
            children: [
              GetPage(
                 name: '/electronics',
                 page: () => ElectronicsView(),
                 binding: ElectronicsBinding(),
              ),
            ],
          ),
      ],
  );

Thus, when accessing the url: '/home/products/electronics' Or use Get.toNamed('/home/products/electronics') it will go directly to the page [ElectronicsView], because the child pages, automatically inherit the name of the ancestral page, so with any small change on any father in the tree all children will be updated. If you change [/products] to [/accessories], you don't nesse update on all child links.

However, the most powerful feature of this version is GetMiddlewares. The GetPage has now new property that takes a list of GetMiddleWare than can perform actions and run them in the specific order.

Priority

The Order of the Middlewares to run can pe set by the priority in the GetMiddleware.

final middlewares = [
  GetMiddleware(priority: 2),
  GetMiddleware(priority: 5),
  GetMiddleware(priority: 4),
  GetMiddleware(priority: -8),
];

those middlewares will be run in this order -8 => 2 => 4 => 5

Redirect

This function will be called when the page of the called route is being searched for. It takes RouteSettings as a result to redirect to. Or give it null and there will be no redirecting.

GetPage redirect( ) {
  final authService = Get.find<AuthService>();
  return authService.authed.value ? null : RouteSettings(name: '/login')
}

onPageCalled

This function will be called when this Page is called before anything created you can use it to change something about the page or give it new page

GetPage onPageCalled(GetPage page) {
  final authService = Get.find<AuthService>();
  return page.copyWith(title: 'Welcome ${authService.UserName}');
}

OnBindingsStart

This function will be called right before the Bindings are initialize. Here you can change Bindings for this page.

List<Bindings> onBindingsStart(List<Bindings> bindings) {
  final authService = Get.find<AuthService>();
  if (authService.isAdmin) {
    bindings.add(AdminBinding());
  }
  return bindings;
}

OnPageBuildStart

This function will be called right after the Bindings are initialize. Here you can do something after that you created the bindings and before creating the page widget.

GetPageBuilder onPageBuildStart(GetPageBuilder page) {
  print('bindings are ready');
  return page;
}

OnPageBuilt

This function will be called right after the GetPage.page function is called and will give you the result of the function. and take the widget that will be showed.

OnPageDispose

This function will be called right after disposing all the related objects (Controllers, views, ...) of the page.

[3.20.1]

  • Fix wrong reference with unnamed routes and added more tests

[3.20.0] - Big update

  • Added GetConnect.
  • GetConnect is an easy way to communicate from your back to your front. With it you can:
  • Communicate through websockets
  • Send messages and events via websockets.
  • Listen to messages and events via websockets.
  • Make http requests (GET, PUT, POST, DELETE).
  • Add request modifiers (like attaching a token to each request made).
  • Add answer modifiers (how to change a value field whenever the answer arrives)
  • Add an authenticator, if the answer is 401, you can configure the renewal of your JWT, for example, and then it will again make the http request.
  • Set the number of attempts for the authenticator
  • Define a baseUrl for all requests
  • Define a standard encoder for your Model.
  • Note1: You will never need to use jsonEncoder. It will always be called automatically with each request. If you define an encoder for your model, it will return the instance of your model class ALREADY FILLED with server data.
  • Note2: all requests are safety, you do not need to insert try / catch in requests. It will always return a response. In case of an error code, Response.hasError will return true. The error code will always be returned, unless the error was a connection error, which will be returned Response.hasError, but with error code null.
  • These are relatively new features, and also inserted in separate containers. You don't have to use it if you don't want to. As it is relatively new, some functions, such as specific http methods, may be missing.
  • Translation to Korean (@rws08)
  • Fix Overlays state (@eduardoflorence)
  • Update chinese docs (@jonahzheng)
  • Added context.isDarkMode to context extensions

[3.17.1]

  • Allow list.assignAll, map.assignAll and set.assignAll operate with null values

[3.17.0]

  • Added GetCupertinoApp
  • Added initial suport to navigator 2.0

[3.16.2]

  • Clean RxList, RxMap and RxSet implementation
  • Now when declaring an RxList(), it will be started empty. If you want to start a null RxList, you must use RxList(null). Improved GetStream to receive the same parameters as the StreamController, such as onListen, onPause, onResume and onCancel.
  • Improve docs

[3.16.1]

  • Fix compilation error on master

[3.16.0]

  • Documentation translated into Russian language. (@Renat Fakhrutdinov, @Doaxan and @BatttA)
  • Added error message callback for StateMixin (@eduardoflorence)
  • Fix incorrect Get.reference when pop route (@4mb1t)
  • Added Uppercase/Capital letter on GetUtils (@AleFachini)
  • Redraw the Streams api to use GetStream instead of StreamControllers. Why this change? Dart provides a Streams API that is really rich. However, asynchronous streams add extra latency to ensure that events are delivered in the exact order. It is not yet known whether this latency has any performance impact in mobile applications, and probably not, however, as GetX is also a server-side framework, we need to have the lowest latency at all, since our base is shared. Dart also has a Synchronous Streams api that has very low latency, however, it is not suitable for use in state management for two reasons: 1- Synchronous Streams can only have one listen (see the issue opened by Hixie on dart lang for reference: https://github.com/dart-lang/sdk/issues/22240). This means that we cannot use this api for more than one listener, which is the basis of global state management, where we aim to change the state of more than one location. You can test this with this simple snippet:
void main() {
  var controller = StreamController(sync: true);
  var stream = controller.stream;
  stream.listen((data) {
    print('$data');
    if (data == 'test4') controller.add('test5');
  });

  print('test1');
  controller.add('test2');
  stream.listen((event) {}); // second listen throws a exception
  print('test3');
  controller.add('test4');
  print('test6');
  controller.add('test7');
  print("test8");
}

2- Even with a single listener, the dart's Synchronous Streams api cannot deliver events in the exact order. We plan to work on a PR in the future at dart-lang to address this. So if we remove the line above that causes the exception, we will have the following output in the log:

void main() {
  var controller = StreamController(sync: true);
  var stream = controller.stream;
  stream.listen((data) {
    print('$data');
    if (data == 'test4') controller.add('test5');
  });

  print('test1');
  controller.add('test2');
  // stream.listen((event) {}); // second listen throws a exception
  print('test3');
  controller.add('test4');
  print('test6');
  controller.add('test7');
  print("test8");
}
///////////////////// log:
test1
test2
test3
test4
test6
test8
test5

As we can see, test 4 skips to test 6, which skips to test 8, which skips to test 5. Note that test 7 didn't even appear in the log.

However, if we work with GetStream, everything works as expected:

void main() {
  var controller = GetStream();
  var stream = controller.stream;
  stream.listen((data) {
    print('$data');
    if (data == 'test4') controller.add('test5');
  });

  print('test1');
  controller.add('test2');
  // stream.listen((event) {}); // second listen throws a exception
  print('test3');
  controller.add('test4');
  print('test6');
  controller.add('test7');
  print("test8");
}
///////////////////// log:
test1
test2
test3
test4
test5
test6
test7
test8

The dart documentation is clear that this api should be used with caution, and in view of these tests, we were sure that it is not stable enough to be used as the core of our state management, nor of the websockets notifications and get_server requests.

Clarification about the controversy over benchmarks: In a version prior to changeLog, we talked about the 9000% difference in performance between Streams, and GetStreams that ended up causing a lot of controversy in the community. Initially, we would like to clarify that this does not mean that you will have mobile applications 9000% faster. Only that one of our main resources, showed itself with a high rate of requests, 9000% faster than using traditional streams. In a real world scenario, you will hardly have so many simultaneous requests. Skia renders frames on new devices at up to 120fps. This means that if you have a 10 second animation, you will have 1200 reconstructions. Unless you are working with animations, or something that requires rendering at the skia boundary, you won't need that much power. So this does not mean that we are revolutionizing the mobile world, only that we have created an alternative to Stream Sincronas, which works as expected, and which has satisfactory performance for low latency resources. The benchmarks are real, but that does not mean that you will have mobile applications 9000% faster, but that you have a new feature that performs at this level to use. For reference only, the benchmark can be found (HERE)

In short: asynchronous streams from dart work perfectly, but add a latency that we want to remove on Get_server. Synchronous dart streams have unexpected behaviors, cannot have more than 1 listener and do not deliver events in the correct order, which completely prevents their use in mobile state managements, since you run the risk of displaying data on the wrong screen, since the last event will not always be the last event entered by the sink. The 9000% figures are real, however, they refer to the gross performance between Streams and GetStreams. This does not mean that this number will impact your applications, because you are unlikely to use all of that power.

[3.15.0] - Big update

  • Improve Performance: We made modifications to make GetBuilder even faster. We have improved the structure behind it so that listeners are notified faster. Perhaps in version 4.0 everything will be based on this new structure, but maintaining the power and compatibility with streams. If you want to know how much Getx is faster than pure streams or ChangeNotifier (even after the last update using LinkedList), you can create run the repository tests at: (https://github.com/jonataslaw/getx/blob/master/test/benchmarks/benckmark_test.dart)
  • Added StateMixin StateMixin allows you to change the state of the controller, and display a loading, an error message, or a widget you want with 0 boilerplate. This makes things like API/Rest communication or websocket absurdly simple, and it's a real revolution in how state management has behaved so far. You no longer need to have a ternary in your code, and you don't need a widget like FutureBuilder, StreamBuilder or even Obx/GetBuilder to encompass your Visibility. This will change with the way you manage the state of your controllers, decrease your boilerplate absurdly, and give you more security in your code.
  • Added GetNotifier GetNotifier is a super and powerful ValueNotifier, which in addition to having the life cycle of the controllers, is extremely fast, and can manage a single state, as a simplified immutable state management solution. In theory, the only difference between it and GetxController is the possibility of setting an initial value in the constructor's super (exactly as ValueNotifier does). If the initial value is null, use GetxController. If you need a starting value, GetNotifier can be more useful and have less boilerplate, but both serve the same purpose: to decouple your visualization layer from your presentation logic.
  • Other Fixes and improvements:
    • Fixed GetxController is closed twice when smartManagement.full is turn on
    • Fixed phone number validation
    • Fixed some inconsistencies in GetWidget and the life cycle of controllers
    • It made controller testing completely safe with navigation.
    • Improve docs (@eduardoflorence)
    • Improve security types on routes (@unacorbatanegra)
    • Improve code structure with less duplicate code: (@kranfix)
    • Fix named route erroring when route does not exist (@FiercestT)

[3.13.2]

  • Reunification of the package. During the 2 week period, we try to keep this package as a compilation of smaller packages. We were successful in separating, getx is well decoupled and it was only necessary to send the internal folders as packages to pub.dev, however, it became very complicated to contribute to the package. This is because it was necessary to clone the repository, replace all pubspec packages with local paths, and after modification, return the original paths to do the PR. With that, the frequency of updates, which was about 4 to 5 days, became almost 2 weeks, and this is not legal for a community as active as Getx, which uses this package precisely in addition to being modern and performance, be constantly improving. This led contributors to the conclusion that getx works best together. Additional packages will continue to be maintained, and will have the same base as the main package, however, development will take place in the full and main package, and as the addition of new features or bug fixes arrives, we will migrate to the individual packages . Getx reached the mark of 50 contributors today, more than 1500 likes in the pub, and will continue to make development easy.

[3.13.1]

  • Remove spaces whitespaces from dart files

[3.13.0]

  • Fix typos on code and docs (@wbemanuel and @Goddchen)
  • Improve: typedef to GetBuilder and Getx widgets
  • Improve behaviour of null route on lastest flutter version (@FiercestT)
  • Fix onReady called twice on smartManagement.onlyBuilders
  • Fix onClose called twice when GetBuilder is used
  • Fix default customTransitions, and defaultDuration be ignored on unnamedRoutes
  • Transition.native use default Flutter transitions
  • Added Get.testMode to use contextless elements on unit tests
  • Added Get.appUpdate and improve Get.forceAppUpdate

[3.12.1]

  • Remove spaces whitespaces from dart files

[3.12.0]

  • Added BottomSheet Duration && Export SingleGetTickerProvider (@unacorbatanegra)
  • Improve docs from dependencies management (@ngxingyu)
  • Fix unknownRoute with null Custom Transition (@marcosfons)
  • Optimize capitalize method (@zl910627)
  • Added Chinese documentation (@idootop)
  • Added TextDirection property on GetMaterialApp to improve RTL layout (@justkawal)
  • Remove unnecessary files on git (@nipodemos)
  • Fix tags on Get.create() and GetWidget() (@roipeker)
  • Update mockito dependency on getTests
  • Added GetStatelessWidget, a StatelessWidget base to GetWidget with lifecycle control of controllers. Note: It's a base class, you don't need change to use it or change your GetView, GetWidget StatelessWidget to It.

[3.11.1]

  • Fix docs

[3.11.0]

  • Refactor structure from scratch to split GetX completely into separate packages. When using the main package (get) you will have everything working perfectly together. However, if you only want one of the resources, you can use the packages separately.
  • Improve Rx types
  • Added RTL support
  • Added GetTests, a set of tools to help you create unit tests using Getx
  • RAM consumption improved by dividing resources into smaller components, preventing related classes that are unnecessary from being loaded
  • Fix example app (missing activity) (@Grohden)
  • Added Get.create() lifecycle (@roipeker)
  • Added section Contribution videos and articles in Readme (@stefandevo)
  • fix isNullOrBlank extension
  • Added all operators overload (@grohden)
  • Fixes subscription for Rx::bindStream (@roipeker)
  • Added Ability to use tags with GetX widgets (@na2axl)
  • Change Arguments from Object to dynamic (@roipeker)
  • Added Persistent bottomsheet (@mohak852)
  • Improve extensions tests (@Nipodemos)
  • Refactor Route Observer (@grohden)
  • Added print extensions (@unacorbatanegra)
  • Update PT-br Readme (@eduardoflorence)
  • Fix analyzer crash (@eduardoflorence)
  • Fix for switch types usages in GetUtils (@grohden)
  • Improvement: RxList, RxSet and RxMap null check in the constructor (@Hitsu91)
  • Improve readme example (@dafinoer)

[3.10.2]

  • Fixed the use of tags with lazyPut and added Ability to overwrite "tag" in GetView and GetWidget.

[3.10.1]

  • Fix analyzer

[3.10.0]

Getx 3.10 released with CLI and Get Server.

  • Added: analyser + effective dart (@Grohden)
  • Added TextStyle to generalDialog title and message (@roipeker)
  • renamed and added defaults transition duration and types in "GetInterface" (@roipeker)
  • added missing parameters in Get.to/Get.offAll (@roipeker)
  • added optional transitionDuration and transitionCurve to Get.dialog() (@roipeker)
  • Changed HashMap<int,GetStateUpdate> to HashSet and allow update IDs groups on GetBuilder (@roipeker)
  • Added a internal VoidCallback in GetStateUpdaterMixin::getUpdate (@roipeker)
  • Added Curve property to routes (@roipeker)
  • Improve docs, code cleanup, new GetStateUpdaterMixin and GetStateUpdate in favour of StateSetter on GetxController, GetBuilder, SimpleBuilder. (@roipeker)
  • Added RxBool.toggle() as an easy shortcut for switching true/false values. (@roipeker)
  • Added _RxImp.nil() to easily set the value to null (@roipeker)
  • Added missing docs to Rx classes. (@roipeker)
  • Added Get.delete(force:false) to Get extensions (@roipeker)
  • Added Docs and comments (@nipodemos)
  • Added docs to PT-br and fix typos (@eduardoflorence)
  • Cleanup route code (@justkawal)
  • Extension to facilitate insert widgets inside a CustomScrollView (@alexkharech)
  • Fix docs .obs examples (@kai-oswald)
  • Added tag capability to GetView
  • Improve code separation of RouteManagement and Internacionalization

[3.8.0]

  • Added: Snackbar Status: Open, Opening, Closing and Closed example:
 Get.snackbar('title', 'message', snackbarStatus: (status) {
                  if (status == SnackbarStatus.CLOSED) {
                    // made anything
                  }
                });

[3.7.0]

  • Added: RxSet. Sets can now also be reactive.
  • Added isDesktop/isMobile (@roipeker)
  • Improve GetPlatform: It is now possible to know which device the user is using if GetPlatform.isWeb is true. context.responsiveValue used device orientation based on web and non-web applications. Now it checks if it is a desktop application (web or desktop application) to do the responsiveness calculation. (@roipeker)
  • Change: The documentation previously stated that Iterables should not access the ".value" property. However, many users did not pay attention to this fact, and ended up generating unnecessary issues and bugs in their application. In this version, we focus on code security. Now ".value" is protected, so it cannot be accessed externally by Lists, Maps or Sets.
  • Change: Observable lists are now Dart Lists. There is no difference in your use: RxList list = [].obs; And you use List list = [].obs;
  • Change: You do not need to access the ".value" property of primitives. For Strings you need interpolation. For num, int, double, you will have the normal operators, and use it as dart types. This way, .value can be used exclusively in ModelClasses. Example:
var name = "Jonny" .obs;
// usage:
Text ("$name");

var count = 0.obs;
// usage:
increment() => count ++;
Text("$count");

Thus: List, Map, Set, num, int, double and String, as of this release, will no longer use the .value property.

NOTE: The changes were not break changes, however, you may have missed the details of the documentation, so if you faced the message: "The member 'value' can only be used within instance members of subclasses of 'rx_list.dart' "you just need to remove the" .value "property from your list, and everything will work as planned. The same goes for Maps and Sets.

[3.6.2]

  • Fix more formatting issues

[3.6.1]

  • Fix formatting issues

[3.6.0]

  • Added RxSet
  • Change default logger to developer.log (@jorgegaticav)
  • Added BindingsBuilder, ValueBuilder, and ObxValue (@roipeker)
  • Fix fallback locale not working if missing country code (@thaihuynhxyz)
  • Fix validation of email ".com.br"

[3.5.1]

  • Remove unnecessary whitespaces

[3.5.0]

  • Added logwritter (@stefandevo)
  • Added responsiveValue (@juanjoseleca)
  • Fixed ghost url for snackbar, bottomsheets, and dialogs and unnamed navigation.

[3.4.6]

  • Fix TextField dispose throw on last Flutter hotfix

[3.4.5]

  • Fix typo on RxList.remove that could cause type errors.
  • Remove initialization console print

[3.4.4]

  • Fix exception 'isInit called null' when tags are used in conjunction with dependencies. (@djade007)
  • Fix typos (@tiagocpeixoto)

[3.4.3]

  • Fix onInit fired only first time
  • Fix language callback(@lundin)
  • Fix docs (@nipodemos)

[3.4.2]

  • Fix individual imports

[3.4.1]

  • Structure organization, and improvements.

[3.4.0]

  • Added '[everAll]' Worker: Listen a List of '.obx'
  • Added Workers dispose
  • Fix transition.noTransition
  • Fix TextField and VideoPlayController dispose before transition animation

[3.3.0]

  • Fix extensions (@stefandevo)
  • Added CPF to utils options (@kauemurakami)
  • Added fenix mode to Get.lazyPut. Use Get.lazyPut<Controller>(()=> Controller(), fenix:true) to have a controller that after being destroyed, has the ability to be recreated in case someone needs it. This is a function that already exists in smartManagement.keepFactory which is now also possible in full mode.
  • Fix native transition on android

[3.2.2]

  • Improve transitions and refactor route system

[3.2.1]

  • Prevent black blackground on cupertino fullscreenDialog

[3.2.0]

  • Improve GetBuilder ram usage
  • Added method update to Rx Now you no longer need to make an entire class reactive to get an element update from it, you can simply call the update method of its instance, like this:
class User{
  User(this.name = '', this.age = 0);
  String name;
  int age;
}

final user = User().obs;

Obx(()=> Text("Name ${user.value.name}: Age: ${user.value.age}"))

// To update:
user.update((user){
user.name = 'Jonny';
user.age = 18;
});

Now is also possible to access a value without using the ".value". Just open and close parentheses. In the previous example, you could do:

user().name; // before: user.value.name

And it is also possible to set a value without using the value, inserting the value directly into the variable.

user(User('João', 35)); // before: user.value = User('João', 35)

Added fenix mode to Get.lazyPut.

[3.1.4]

  • Update readme banner

[3.1.3]

  • Activate unknownRoute on version 3
  • Go back transitions.size and transitions.cupertino

[3.1.2]

  • Expose GetInstance

[3.1.1]

  • Improvement .obs methods

[3.1.0]

  • Added extensions to GetUtils and fix typo on GetUtils.isEmail (@stefandevo)
  • Added .gitignore file (@hdeyana)

[3.0.1]

  • Breaking changes on Rx api and GetController and RxController were merged, and now you only have the 'GetxController'
  • Refactor routing system. Now you can add custom transitions and more
  • Improved the use of dynamic routes, you can now define two different pages according to your arguments.
  • Added GetView widget
  • Added internacionalization
  • Added validations
  • Added Get queqe
  • Added GetStorage (with separated package)
  • Minor bug fixes.

[2.14.0]

  • Added getPages API.
  • Deprecated namedPages
  • Fix default transition
  • Added Duration on Get.offAll(@kluverua)

[2.13.1]

  • Added sort to ListX
  • Prepared the framework for version 3

[2.13.0]

  • Added Get.focusScope

[2.13.0]

  • Update docs
  • Fix Bindings list on GetPageRoute

[2.12.5]

  • Update readme

[2.12.4]

  • Prevent exceptions on onReady with nullables

[2.12.3]

  • Fix List lenght == null

[2.12.2]

  • Fix Workers

[2.12.1]

  • Added: onReady on Controllers LifeCycle
  • Added: Observable maps
  • Refactor: observable variables that now consume even less RAM.

[2.11.3]

  • Type parameters and added docs

[2.11.2]

  • Added docs
  • Improvement performance of Obx

[2.11.1]

  • Fixed: oninit calling only once.

[2.11.0]

  • Added Permissions: You can now revoke permissions to SmartManagement so that it cannot delete a particular controller. Add to Get.put (Controller(), permanent: true); to make it indelible. Get.lazyPut() will not receive this resource. Initially he had it, but we saw in internal tests that it could cause problems with the bindings API. Bindings were created to initialize and delete an instance, if it were allowed to make a controller started with lazyPut permanent, copies of that Controller would be created every time Binding was called. For the safety of users, especially new users who could easily do this, it was decided that this feature will only be present in Get.put.
  • Improve: Now a controller's life cycle has no connection with the View life cycle. It is no longer called internally in an "initState", it is now called when the Controller enters memory. This means that now onInit will always be called, regardless of where you started your dependency.
  • removed: this property of the update() method has been permanently removed.

[2.10.3]

  • GetBuilder refactor. 11% reduction in RAM consumption and 2% in CPU consumption for the sample application. (using as base Flutter for linux desktop).

  • The "this" property of the "update" method has been deprecated and will be removed in the next update. Please don't use it anymore. Just use "update()" now.

[2.10.2]

  • Fix Get.generalDialog default options

[2.10.1]

  • Fix broken links on pub
  • Fix List empty error

[2.10.0]

  • Added SmartManagement, your application's memory is managed intelligently like never before!
  • Added Obx, a widget that knows when to rebuild a child, without needing any type.
  • Added MixinBuilder - If you need to use GetBuilder in conjunction with GetX, use GetxController with this widget, and the changes will occur either using update (this) or changing some reactive variable. Use only if necessary, for better RAM consumption, prefer widgets in that order: Obx => GetX => GetBuilder => MixinBuilder. Obx is the lightest of all, and MixinBuilder is a mix of the other 3, whenever possible, use the specific widget.
  • Refactor: StateManager of Get.
  • Changed: full List API refactor, now value is no longer needed.
  • Added Workers: You can hear changes to a variable and trigger custom callbacks.
  • Added Bindings API docs.
  • Added Portuguese language to readme(@Nipodemos)

[2.7.1]

  • Improve list to set and get methods

[2.7.0]

  • Added obx, a simple state interceptor.
  • Improve Bindings, ListX, and
  • fix docs typos e broken code (@ghprod)

[2.6.3]

  • Flutter currently has a problem on some devices where using showModalBottomSheet() can cause TextFields to be hidden behind the keyboard (https://github.com/flutter/flutter/issues/18564) this issue is closed, even users reporting that the problem still occurs. The problem happens casually, as well as the problem of the snackbar on the iPhone SE 2, and checking the code, I realized that a padding with MediaQuery.of(context).viewInsets.bottom is missing inside the bottomSheet to make it work correctly, since it does not have any constraint with the keyboard. For stability, I decided not to use the standard Flutter bottomSheet, which contains many bugs, mainly related to keyboard padding, and the lack of respect for topBar's safeArea, and to use a proprietary bottomSheet implementation that is more stable. The Flutter dialog has no problem, so it will be used as the basis for Get.dialog. The bottomSheet will be based on the Flutter bottomSheet Raw API (_ModalBottomSheetRoute), applying bug fixes.
  • Added Get.isSnackbarOpen tests

[2.6.2]

  • Refactor Bindings API

[2.6.1]

  • Expose Bindings API

[2.6.0]

  • Added bindings. You can now add bindings from your controllers to your routes, to prepare GetBuilder or GetX to create a dependency already declared in a Binding class. This feature is in an experimental phase, and will not be documented until the end of the tests.

[2.5.10]

  • Removed remnants of previousArgs on routeObserver. This feature had been deprecated in previous updates, and was removed in version 2.5.8. Some remaining references on the routeObserver were causing exceptions in version 2.5.9, and were removed completely in version 2.5.10.

[2.5.9]

  • Fix Get.find with named instance

[2.5.8]

  • Added docs
  • Added tests(@chimon2000)

[2.5.7]

  • Fix Get.generalDialog optionals
  • Added GetX onInit support

[2.5.6]

  • GetBuilder refactor to work with lazyPut. Now you can list your controllers in advance with Get.lazyPut, and only when it is called for the first time will it be relocated in memory.
  • Fix english typos(@gumbarros)

[2.5.5]

  • Fix arguments broken by new methods

[2.5.4]

  • Refactor methods

[2.5.3]

  • Fix snackbar padding on iPhone SE 2.
  • Added themes docs
  • Added ThemeMode (@RodBr)

[2.5.2]

  • Fix: key not found when Get.key is used with no MaterialApp

[2.5.1]

  • Improve - GetBuilder uses 18% less ram on more of 20 controllers.

[2.5.0]

  • Added List.obs
  • Now you can transform any class on obs

[2.4.0]

  • Added GetX, state manager rxDart based.
  • Fix error on add for non global controllers

[2.3.2]

  • Fix close method called on not root GetBuilder

[2.3.1]

  • Auto close stream inside close method
  • Added docs

[2.3.0]

  • Added interface to GetX support

[2.2.8]

  • Added api to platform brightness

[2.2.7]

  • Fix typos

[2.2.6]

  • Fix cancel button on defaultDialog don't appear when widget implementation usage

[2.2.5]

  • Refator defaultDialog

[2.2.4]

  • Clean code
  • Fix Get.LazyPut

[2.2.3]

  • Remove defaultDialog type

[2.2.2]

  • Fix GetRoute not found

[2.2.1]

  • Improve lazyPut and fix tag to lazyput(@rochadaniel)

[2.2.0]

  • Added: Ability to choose or delay a widget's state change according to its ID.
  • Added: Ability to fire triggers when loading materialApp.
  • Added: Ability to change theme dynamically.
  • Added: Ability to rebuild the entire app with one command.
  • Added: Ability to trigger events on the MaterialApp.
  • Added: Get.lazyPut (lazy loading of dependencies).
  • Added: Get.creator - a factory of dependencies .
  • Added: Capability of define abstract class on dependencies.

[2.1.2]

  • Get.defaultDialog refactor

[2.1.1]

  • fix typo

[2.1.0]

  • Added Get.rawSnackbar
  • Added instantInit config to snackbars
  • Refactor Get Instance Manager
  • Improved performance and bug fix to Get State Manager
  • Improved performance of GetRoute on namedRoutes
  • Hotfix on namedRoutes

[2.0.10]

  • Bump new Flutter version
  • Added Get.generalDialog

[2.0.6]

  • Fix typo on readme

[2.0.5]

  • Changing the bottomsheet API to comply with the documentation.

[2.0.4]

  • Fix type not found in some versions of Flutter stable

[2.0.3]

  • Update Docs

[2.0.2]

  • Update GetObserver

[2.0.1]

  • Fix docs and typos

[2.0.0]

  • Added easy state manager
  • Change dialog API
  • Added GetMaterialApp
  • Added new experimental APIs
  • Improve Observer
  • Added default duration on Transitions
  • Added new routeNamed sistem
  • Added Global stateManager config
  • Improve Get instance manager
  • Added routingCallback
  • Added closeOverlays to Get.back
  • Added dynamic urls
  • Cleaner code
  • Improve lib performance
  • Many others minor APIs added

[1.20.1]

  • Improve: Get.finds

[1.20.0]

  • Added Get Instance Manager Get.put / Get.find / Get.delete

[1.19.1]

  • Fix default transitions for namedRoutes

[1.19.0]

  • Added nested navigators

[1.18.0]

  • Added SafeArea to bottomsheets
  • Added docs

[1.17.0]

  • Added experimental APIs

[1.16.1]

  • Improve: GetObserver

[1.16.0-dev]

  • Added Get config
  • Added logEnable
  • Added Default transition
  • Added default popGesture behaviour
  • Added overlayContext
  • Fix Duration transition

[1.14.1-dev]

  • Fix ternary on new dart version

[1.14.0-dev]

  • Added compatibility with Flutter 1.17.1
  • Added back popGesture to iOS (default) and Android (optional)
  • Improve performance
  • Decrease lib size to 94.9kb (25.4k after compiled on release)

[1.13.1-dev]

  • Fix back function

[1.13.0-dev]

  • Plugin refactor
  • Added GetPlatform

[1.12.0-dev]

-Compatibility with Dev branch

[1.11.4]

  • Refactor code of library

[1.11.3]

-Added docs

[1.11.2]

-Fix flutter web platform and added GetPlatform

[1.11.1]

-Improve swipe to back on iOS devices

[1.11.0]

-Added experimental GetCupertino

[1.10.5]

-Added setKey to improve modular compatibility -Added ability to define transition duration directly when calling the new route.

[1.10.4]

-Improve Get.offAll() - predicate now is optional

[1.10.3]

-Improve default color from dialogs

[1.10.2]

-Improve snackbar text color -Added background color to snackbar (@claudneysessa)

[1.10.1]

-Backdrop improvement

[1.10.0]

-Added backdrop

[1.9.2]

-Added docs to GetObserver

[1.9.1]

-Fix typo on snackbar route

[1.9.0]

-Added: Navigator observer -Added: Get.args to named routes -Improve snackbar performance

[1.8.1]

-Fix new snackbar features

[1.8.0]

-Add Get.close method. -Add many Snackbars features

[1.7.4]

-Fix dialog child error

[1.7.3]

-Added transitions docs

[1.7.2]

-Fix bottomsheet on macos

[1.7.1]

-Fix docs

[1.7.0]

  • Improve geral performance. Get.to Wrap now consumes even less RAM and CPU. In an application with 20 screens, it obtained 82% less RAM usage compared to the traditional method Navigator.push and had a CPU normalization of 23% in a Moto z2, against 64% CPU usage in Navigator.push with MaterialPageRoute. Test it for yourself!
  • Added BottomSheet with no context
  • Added modern Blur Snackbar
  • Added customs transitions
  • Improve dialogs performance

[1.6.4]

  • Improve performance.

[1.6.3]

  • Clean code.

[1.6.2]

  • Fix bugs on blurred Snackbars

[1.6.1]

  • Add docs and improve performance

[1.6.0]

  • Add support to snackbars

[1.5.0+1]

  • Add color and opacity to dialogs

[1.5.0]

  • Add support to dialogs

[1.4.0+7]

  • Add more documentation

[1.4.0+6]

  • Improve performance and bug fix

[1.4.0]

  • Added Get.removeRoute // ability to remove one route. Get.until // back repeatedly until the predicate returns true. Get.offUntil // go to next route and remove all the previous routes until the predicate returns true. Get.offNamedUntil // go to next named route and remove all the previous routes until the predicate returns true.

[1.3.4]

  • Improve performance

[1.3.3]

  • Fix Get.back arguments

[1.3.2]

  • Improve performance

[1.3.1]

  • Update docs

[1.3.0]

  • Update docs, readme, and add full support to flutter_web

[1.2.1]

  • Fix bug currentState = null

[1.2.0]

  • Add routes navigation with no context

[1.1.0]

  • Add support to named routes

[1.0.3]

  • Improve Performance

[1.0.2]

  • Add examples

[1.0.1]

  • Doc changes

[1.0.0]

  • initial release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'get:4.7.3'
pubspec.yaml
name: get
description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
version: 4.7.3
homepage: https://github.com/jonataslaw/getx

environment:
  sdk: ">=2.15.0 <4.0.0"
  flutter: ">=3.13.0"

dependencies:
  flutter:
    sdk: flutter
  web: ">=0.5.0 <2.0.0"

dev_dependencies:
  flutter_lints: ^6.0.0
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # To add assets to your package, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  #
  # For details regarding assets in packages, see
  # https://flutter.dev/assets-and-images/#from-packages
  #
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # To add custom fonts to your package, 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: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts in packages, see
  # https://flutter.dev/custom-fonts/#from-packages

Version history

VersionPublishedArchiveSHA-256
1.0.0On demandDownload70235970…db65c4
1.0.1On demandDownload6cb2be18…ee7b99
1.0.2On demandDownload11002e92…339d50
1.0.3On demandDownload89be4c40…dd291b
1.1.0On demandDownloadfbf38a8a…0d093e
1.2.0On demandDownloadd063e9f1…5ec33c
1.2.1On demandDownloade0965df9…72b653
1.3.0On demandDownload0eb1f746…3825ab
1.3.1On demandDownload3754fb30…e7c37c
1.3.2On demandDownload81bc7bdb…fcbec9
1.3.3On demandDownload0317bc7b…6fc912
1.3.4On demandDownloada175ed01…8d6214
1.4.0On demandDownloadf1c02c68…147376
1.4.0+1On demandDownload8a9650e8…ec9225
1.4.0+2On demandDownload21680ffa…2f545e
1.4.0+3On demandDownloade0c05045…310820
1.4.0+4On demandDownloadce946947…37a6fc
1.4.0+5On demandDownload9e3b7629…ff8932
1.4.0+6On demandDownloadbf21a9da…8d2518
1.4.0+7On demandDownloadef0c6709…f13165
1.5.0On demandDownload5b05614d…2b75ca
1.5.0+1On demandDownloadcca42743…482334
1.6.0On demandDownload26a75870…03d5d7
1.6.1On demandDownloada90d6813…0821ae
1.6.2On demandDownloadb93fdd55…e55648
1.6.3On demandDownload5a6f1552…9a6310
1.6.4On demandDownload55ef6312…6ad56a
1.7.0On demandDownload3a58e273…000121
1.7.1On demandDownloade2da941b…a72985
1.7.2On demandDownload9a25be03…f85b6c
1.7.3On demandDownload042a3871…e37db5
1.7.4On demandDownloadc6416de5…25e448
1.8.0On demandDownloadad515423…8733bf
1.8.1On demandDownloade655aafb…f39e09
1.9.0On demandDownload4e06b7f8…80d963
1.9.1On demandDownload48ccf3a8…a64ad3
1.9.2On demandDownload111fd015…54d59c
1.9.9-alphaOn demandDownload11f07dd8…8dc5f2
1.9.10-alphaOn demandDownloada8453ece…67cd22
1.9.11-alphaOn demandDownloada3422941…9c1b6e
1.9.12-alphaOn demandDownloaddcd45b44…edccd4
1.9.13-alphaOn demandDownloadd3361282…cc0b8f
1.9.14-alphaOn demandDownloadb19c99b1…6e2d0a
1.9.15-alphaOn demandDownloadf4a4ec4f…a2d647
1.9.20-alphaOn demandDownloadfde4f83e…53a553
1.9.21-alphaOn demandDownload3085b374…5303fa
1.9.22-alphaOn demandDownloadb549968d…e4ed9f
1.9.23-alphaOn demandDownloade22b9875…0b1ab9
1.9.24-alphaOn demandDownload657ec872…5e2c27
1.9.25-alphaOn demandDownload47a30fa0…eabf34
1.9.30-alphaOn demandDownloaddaa3eb2f…940880
1.9.40-alphaOn demandDownloadd6be4eb2…66eb13
1.9.50-alphaOn demandDownload4aade605…8967c9
1.9.60-alphaOn demandDownloadc1c5aad4…f81b52
1.9.61-alphaOn demandDownload6e7c22f1…f1953f
1.9.62-alphaOn demandDownloadcaec69a1…27be61
1.9.63-alphaOn demandDownload30540938…6325d9
1.9.64-alphaOn demandDownloadcb098a3e…3ad8d8
1.10.0On demandDownload87421453…f60f78
1.10.1On demandDownloada4978b0c…df0801
1.10.2On demandDownloadf5198736…f9ec32
1.10.3On demandDownloadcd29d4d3…31bf95
1.10.4On demandDownload4fd08128…75391d
1.10.5On demandDownload4b677b00…aa9a82
1.11.0On demandDownload69aa1dcb…1f6aed
1.11.1On demandDownload262067e2…213b00
1.11.2On demandDownload304ba1d3…381902
1.11.3On demandDownload29595cda…ccf8df
1.11.5On demandDownload815e5a76…3340ad
1.11.6On demandDownloadf6f18f09…43d68b
1.12.0-devOn demandDownload7802e59a…1bda47
1.12.0On demandDownloada9e29e15…72921c
1.13.0-devOn demandDownload13a4af58…38bc13
1.13.1-devOn demandDownloadcf7de032…a80839
1.13.3-betaOn demandDownload46583712…5e2309
1.14.0-devOn demandDownload9bad4ecb…c6e309
1.14.1-devOn demandDownloaddb9dabb8…d9f0c0
1.15.0On demandDownload944cf25e…dd8761
1.15.1On demandDownloada53acdfa…66ef51
1.15.2On demandDownload57dc7aa3…b3a52f
1.16.0-devOn demandDownload0f655e26…3f446b
1.16.0On demandDownload3fd35e80…c5a35f
1.16.1-devOn demandDownload5c69117d…81eb21
1.17.0-devOn demandDownload1647ee8d…a6ee55
1.17.0On demandDownloada87e0609…8d928e
1.17.1On demandDownloadb5017259…4e4fcb
1.17.2On demandDownload160c1115…b5a322
1.17.3On demandDownloadcacdf723…797671
1.18.0-devOn demandDownload601519d8…a04f65
1.19.0-devOn demandDownload4dc68046…cc9648
1.19.1-devOn demandDownload7b4dcd0f…61dbf3
1.20.0-devOn demandDownload499e7da4…4a5d2c
1.20.1-devOn demandDownload48d5bff3…25ab01
2.0.0-devOn demandDownloadf91fccbc…1cf476
2.0.0On demandDownload14d67890…2f5c52
2.0.1-devOn demandDownload5fdcaaf9…e4d1b3
2.0.1On demandDownloadccd8aa17…2516ec
2.0.2-devOn demandDownload68de639c…c4086c
2.0.2On demandDownload3aeb528f…f64cc4
2.0.3-devOn demandDownloadba8b4c63…2b277f
2.0.3On demandDownload77bee45d…2ff444
2.0.4-devOn demandDownload216bae9d…e98585
2.0.4On demandDownload2ebf6a2c…285d98
2.0.5-devOn demandDownload3892722f…8b8a0a
2.0.5On demandDownloadb1395fbc…474177
2.0.6-devOn demandDownload6a589894…30b07b
2.0.6On demandDownload95f551f1…70f725
2.0.7-devOn demandDownloadd0e553ec…922724
2.0.7On demandDownloade509dd89…517386
2.0.8-devOn demandDownloadf62273fd…88297b
2.0.9-devOn demandDownload98962995…726e80
2.0.10On demandDownloadaccdec0c…4588d5
2.1.0On demandDownload607d9f3a…be827c
2.1.1On demandDownloadac469d3a…bd9dd1
2.1.2On demandDownload327d808c…24bb44
2.2.0On demandDownload583e81e9…659235
2.2.1On demandDownload630b0032…669283
2.2.2On demandDownload25a9f029…8e8fae
2.2.3On demandDownloadf694f050…5152dd
2.2.4On demandDownload1944aa2f…30f141
2.2.5On demandDownloadfb938a73…a8fb16
2.2.6On demandDownloadf0f8d4ef…b1b1d6
2.2.7On demandDownload24bc11ce…b50ff9
2.2.8On demandDownloadaeb254ff…86c673
2.3.0On demandDownload121f7dca…64a629
2.3.1On demandDownload9bec29db…e0ccae
2.4.0On demandDownloadd58c0d7e…70ba55
2.5.0On demandDownload3ed597f4…6b88b8
2.5.2On demandDownload8ae76e00…08d84e
2.5.3On demandDownload30bb6b93…4cc8da
2.5.4On demandDownload33268a12…c1976a
2.5.5On demandDownload64fc6c68…8b0a92
2.5.6On demandDownload83c061c2…2bd202
2.5.7On demandDownload302ef480…d9893a
2.5.8On demandDownloadd45f8671…dda812
2.5.9On demandDownload0a97ed65…0d43d7
2.5.10On demandDownload0f2729a1…93fe11
2.6.0On demandDownloadccbfbe84…3a151d
2.6.1On demandDownloadcbb9fa6d…d06c8f
2.6.2On demandDownload326e743d…c98e9e
2.6.3On demandDownloadbb16d01e…ad77b1
2.7.0On demandDownloadada51d1a…a937f9
2.7.1On demandDownloaddaed9927…8acedf
2.10.0On demandDownloadcd2e08de…31e98a
2.10.1On demandDownload5fdec6fb…d3c7df
2.10.2On demandDownload530a8b59…3a0663
2.10.3On demandDownload46282cde…d1dcc7
2.11.0On demandDownload1fd7591e…af3459
2.11.1On demandDownloadafd2a0db…fef5fe
2.11.2On demandDownload41e7b562…95021d
2.11.3On demandDownloaddbf1d8ef…3ada97
2.12.0-betaOn demandDownload36f01f7c…ed113c
2.12.1-betaOn demandDownload3a41207d…b1f3c6
2.12.1On demandDownload1fbbc066…30692f
2.12.2On demandDownloadc4bcdf77…12dea9
2.12.4On demandDownload9d58f6c0…731b59
2.12.5-betaOn demandDownload33a812b2…78ea42
2.12.5On demandDownload5e152154…0252f1
2.12.6On demandDownload47c73143…f47e1f
2.13.0On demandDownloadba908182…6c6847
2.13.1On demandDownload5c63b26d…c0d1e2
2.14.0On demandDownload176c8eef…8c3787
2.14.1On demandDownload8459cec0…55c222
3.0.0-betaOn demandDownloadb2439fa4…07b8e0
3.0.0+1-betaOn demandDownloadb91c04fb…9d68b2
3.0.1On demandDownloade57f3e7f…1fbf8f
3.1.0On demandDownloadda7a01f2…888613
3.1.1On demandDownload9b719228…ea0e14
3.1.2On demandDownloadc777fed5…ed6259
3.1.3On demandDownloaddbd3f96a…721454
3.1.4On demandDownloadc7801866…5e7661
3.2.0On demandDownload18681cf3…23f835
3.2.1On demandDownload1024ff14…70b1ba
3.2.2On demandDownloadbe421644…2afa66
3.3.0On demandDownloadadc498fb…a62741
3.4.0On demandDownload4bafa467…9efa5b
3.4.1On demandDownloadae41d31a…9faf07
3.4.2On demandDownload5fc2050f…3b56e9
3.4.3On demandDownloadd70fb40b…c66fd3
3.4.4On demandDownloadcb7938df…5c8fa9
3.4.5On demandDownload3d55feb1…9499d4
3.4.6On demandDownload6d6fbd2b…9d1b36
3.5.0On demandDownload2498dd83…72324c
3.5.1On demandDownload18339b78…09fc72
3.6.0On demandDownload86feb598…fd9d12
3.6.1On demandDownload4c7e3eec…a80d33
3.6.2On demandDownload38e0b8d2…614ec2
3.7.0On demandDownloadaa8d87e3…4f0ecd
3.8.0On demandDownload3229df44…e4ffc5
3.10.0On demandDownload396c232c…a5b424
3.10.1On demandDownload75b3ce63…6ac18c
3.10.2On demandDownload00113f89…4c7cb0
3.11.0On demandDownload035014a5…f94ba8
3.11.1On demandDownload682561bd…6f45c2
3.12.0On demandDownload2bdced3b…426ec3
3.12.1On demandDownloada9475e75…a3521f
3.13.0On demandDownload456a44ec…e4c756
3.13.1On demandDownloadff10623e…b1d036
3.13.2On demandDownload6793cf67…e803d7
3.15.0On demandDownload57e4a477…95652d
3.16.0On demandDownload17ea1bae…cb365b
3.16.1On demandDownload98c01557…c33a40
3.16.2On demandDownload5bb68ada…dccfc6
3.17.0On demandDownload6959172d…a938a9
3.17.1On demandDownload16cebbeb…c32b84
3.20.0On demandDownload2272e695…67d050
3.20.1On demandDownloadd73ba93d…1ff5fd
3.21.0On demandDownload0b0903a2…4daec6
3.21.1On demandDownload4451aeeb…4a74f1
3.21.2On demandDownload3c75c7f2…10801c
3.21.3On demandDownload6984f211…6a6735
3.22.0On demandDownload6b7f1c8a…f2ac7f
3.22.1On demandDownloadaa1b272e…f12260
3.22.2On demandDownload7ed26b8f…e71769
3.23.0On demandDownload6784799d…28b302
3.23.1On demandDownload155a4a17…076b96
3.24.0On demandDownloadabe12728…42a1f0
3.25.0On demandDownload131e01a2…848c6b
3.25.1On demandDownload276b44a0…9a1db2
3.25.2On demandDownload5a9d799c…984559
3.25.3On demandDownload395fdedf…e49a26
3.25.4On demandDownload64a873d7…305148
3.25.5On demandDownloadc9f91330…36fc6b
3.25.6On demandDownloadddb2583c…7f0114
3.26.0On demandDownloade476dffb…0ee833
4.0.0-nullsafety.0On demandDownload985f56c7…fbc429
4.0.0-nullsafety.2On demandDownloadb61cc69e…e2f172
4.0.0On demandDownloadd945573b…ec8d38
4.0.1On demandDownloadfdafcb71…de1ce6
4.0.2On demandDownload37fb594b…64ff05
4.0.3On demandDownloadd48d1818…a66cb6
4.1.0On demandDownloadddc59fd1…bd8d9b
4.1.1On demandDownload39aba320…7bcb76
4.1.2On demandDownload6deebdbf…7c8d7b
4.1.3On demandDownload78b2f85c…38fc36
4.1.4On demandDownload607be948…46be49
4.2.0On demandDownload6ea68e9d…a8d9ad
4.2.1On demandDownload80d54baa…f41894
4.2.1+1On demandDownload4a956a94…6913fc
4.2.1+2On demandDownload42581cfb…f65729
4.2.3On demandDownload5032e5f1…28c636
4.2.4On demandDownloada5463079…4e57a0
4.2.5On demandDownloade219038c…41f074
4.3.0On demandDownload8877c9bc…f6083c
4.3.1On demandDownload830c05ce…da759c
4.3.2On demandDownload5abb2374…d3f6ee
4.3.3On demandDownload9b2b2e61…8a4f37
4.3.4On demandDownload9632dd89…3ae2e6
4.3.5On demandDownload956faebf…a48c95
4.3.6On demandDownloadc6784a7f…6934d7
4.3.7On demandDownloadc52697d1…92a39f
4.3.8On demandDownload1b5b585e…473f47
4.5.0On demandDownload43d994c7…2a47df
4.5.1On demandDownload75d92184…a4b063
4.6.0On demandDownload8022162b…7ac13f
4.6.1On demandDownload34cd0cfb…51a256
4.6.2On demandDownloadf2b2048f…22fbba
4.6.3On demandDownloadf486b8dd…b02326
4.6.4On demandDownload1e44ff5c…906f90
4.6.5On demandDownload2ba20a47…b0e92a
4.6.6On demandDownloade4e7335e…d2a85e
4.7.0On demandDownload0b18d166…4280f1
4.7.1On demandDownloadc338f344…8db5f9
4.7.2On demandDownloadc79eeb43…39d425
4.7.3Cached · Upstream SHA-256 matchedDownload5ed34a79…c3d79a
5.0.0-beta.1On demandDownloadb37eb431…98be50
5.0.0-beta.2On demandDownloadba34c679…09db59
5.0.0-beta.3On demandDownload92de6554…8f7777
5.0.0-beta.4On demandDownload4d44f4a9…03528a
5.0.0-beta.5On demandDownload3c10891d…fdd4f3
5.0.0-beta.6On demandDownload05323839…a5103e
5.0.0-beta.7On demandDownload2c49e88b…90f5ed
5.0.0-beta.9On demandDownload598148cd…d5d5a4
5.0.0-beta.10On demandDownload3c0e9003…8f7a6e
5.0.0-beta.11On demandDownloadb3cd3416…b256bd
5.0.0-beta.12On demandDownloadfe7c9c28…bc07bd
5.0.0-beta.13On demandDownload253836c1…d32f43
5.0.0-beta.14On demandDownload9a54cc09…faee0f
5.0.0-beta.15On demandDownload7de4f88a…8ea168
5.0.0-beta.16On demandDownloadb1b31fb6…02e298
5.0.0-beta.17On demandDownloaddf1303d3…9c95d2
5.0.0-beta.18On demandDownloadafbdf006…3e6120
5.0.0-beta.20On demandDownloadc910c2dc…09bc9f
5.0.0-beta.21On demandDownload9b94e8ea…219eb2
5.0.0-beta.22On demandDownload05d80a17…79fed3
5.0.0-beta.23On demandDownloadb6470e75…4ba48f
5.0.0-beta.24On demandDownload05497d9f…cd2fca
5.0.0-beta.25On demandDownload6bf3387b…2fbd08
5.0.0-beta.26On demandDownloade1a03ff7…616b0f
5.0.0-beta.27On demandDownload5349ff57…33f7fd
5.0.0-beta.28On demandDownload6e5c6a6f…e61ab6
5.0.0-beta.29On demandDownload9d3a88c2…2c2319
5.0.0-beta.30On demandDownload7b313de2…6eb075
5.0.0-beta.31On demandDownload4a0c4f1d…158c32
5.0.0-beta.32On demandDownloada4bad9dc…71c2c4
5.0.0-beta.33On demandDownload03c8d178…81c4c8
5.0.0-beta.34On demandDownloadae534376…3549af
5.0.0-beta.35On demandDownload49e7b288…e95d2b
5.0.0-beta.36On demandDownload9ba2df58…408f3c
5.0.0-beta.37On demandDownload87350b1b…fcadc2
5.0.0-beta.38On demandDownload51ce6280…20cee4
5.0.0-beta.39On demandDownload4659a9dd…725af5
5.0.0-beta.40On demandDownloadc4185c2b…8602e0
5.0.0-beta.41On demandDownloade55702ee…7b536d
5.0.0-beta.42On demandDownloadcc7eb05a…f391df
5.0.0-beta.43On demandDownloadf02a35cf…95c873
5.0.0-beta.44On demandDownload7603d1c6…16dac9
5.0.0-beta.45On demandDownloadb8746a8f…4ddd46
5.0.0-beta.46On demandDownload5638a2be…5881cc
5.0.0-beta.47On demandDownloadfa50f86b…49eac2
5.0.0-beta.48On demandDownloadc6d6e8dc…f43c79
5.0.0-beta.49On demandDownload694fd48f…bb63b1
5.0.0-beta.50On demandDownloade5b2e10b…ce25a8
5.0.0-beta.51On demandDownload8d739045…c3e988
5.0.0-beta.52On demandDownloadcfad0acd…4afec6
5.0.0-release-candidateOn demandDownloade06486cd…578762
5.0.0-release-candidate-10On demandDownloadcc71ce3c…e923ce
5.0.0-release-candidate-11On demandDownloadf9102c30…394f5c
5.0.0-release-candidate-2On demandDownload71265b8e…39d78a
5.0.0-release-candidate-3On demandDownloadec101bd9…5e9c96
5.0.0-release-candidate-4On demandDownload324e6808…68c1e4
5.0.0-release-candidate-5On demandDownloadc8a73b46…ec43db
5.0.0-release-candidate-6On demandDownload2841187a…72e10c
5.0.0-release-candidate-8On demandDownloadcc61b383…653cd3
5.0.0-release-candidate-9On demandDownloadee724cde…049bff
5.0.0-release-candidate-9.1On demandDownload70385bae…aa2bf3
5.0.0-release-candidate-9.2On demandDownloadfa0e73ca…9a3c62
5.0.0-release-candidate-9.2.1On demandDownload7172032c…e147bc
5.0.0-release-candidate-9.3.0On demandDownload4b4b9ae9…3b404f
5.0.0-release-candidate-9.3.1On demandDownloadc45c813b…14250c
5.0.0-release-candidate-9.3.2On demandDownloadb3294002…b0768e
5.0.0-release-candidate-9.3.3On demandDownloadae8e39a5…895ad9

Dependencies

flutter { "sdk": "flutter" }

web "\u003e=0.5.0 \u003c2.0.0"