@@ -27,8 +27,6 @@ Other Flutter platforms are not currently supported by this SDK.
2727
2828### Install the SDK
2929
30- ### Packages
31-
3230To add the flutter-sdk to your project dependencies, include the following in your app's pubspec.yaml:
3331
3432```
@@ -37,15 +35,15 @@ To add the flutter-sdk to your project dependencies, include the following in yo
3735
3836Then run
3937
40- ```
41- flutter pub get
38+ ``` bash
39+ flutter pub get
4240```
4341
4442## Use the Flutter SDK
4543
4644A sample code for SDK initialization:
4745
48- ```
46+ ``` dart
4947 var flutterSDK = OptimizelyFlutterSdk("my_sdk_key");
5048 var response = await flutterSDK.initializeClient();
5149```
@@ -54,14 +52,12 @@ A sample code for SDK initialization:
5452
5553Then, import the package in your application code:
5654
57- ```
55+ ``` dart
5856 import 'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';
5957```
6058
6159### Feature Rollouts
62- ```
63- import 'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';
64-
60+ ``` dart
6561 // Also supports eventOptions, datafilePeriodicDownloadInterval, datafileHostOptions and defaultDecideOptions
6662 var flutterSDK = OptimizelyFlutterSdk("my_sdk_key");
6763
@@ -81,8 +77,11 @@ Then, import the package in your application code:
8177
8278### Unit Tests
8379
84- 1 . To run [ unit tests] ( https://docs.flutter.dev/cookbook/testing/unit/introduction ) using terminal, simply use the following command:
85- ` flutter test test/optimizely_flutter_sdk_test.dart `
80+ 1 . To run [ unit tests] ( https://docs.flutter.dev/cookbook/testing/unit/introduction ) using terminal, simply use the following command
81+
82+ ``` bash
83+ flutter test test/optimizely_flutter_sdk_test.dart
84+ ```
8685
8786### Contributing
8887
0 commit comments