Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor formatting fixes for new compose-activity article #11266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Take our settings from the example_utils analysis_options.yaml file.
# If necessary for a particular example, this file can also include
# overrides for individual lints.

include: package:example_utils/analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter/services.dart';
// SECTION 1: START COPYING HERE
const platformMethodChannel = MethodChannel(
// Note: You can change this string value, but it must match
// the `CHANNEL` attribute in the next step
// the `CHANNEL` attribute in the next step.
'com.example.flutter_android_activity',
);
// SECTION 1: END COPYING HERE
Expand All @@ -19,13 +19,13 @@ class MainApp extends StatelessWidget {
// SECTION 2: START COPYING HERE
void _launchAndroidActivity() {
platformMethodChannel.invokeMethod(
// Note: You can change this value, but it must must match the
// `call.method` value in the next section
// Note: You can change this value, but it must match
// the `call.method` value in the next section.
'launchActivity',

// Note: You can pass any primitive data types you like. To pass complex
// types, use pkg:pigeon to generate matching Dart and Kotlin classes
// which share serialization logic.
// Note: You can pass any primitive data types you like.
// To pass complex types, use package:pigeon to generate
// matching Dart and Kotlin classes that share serialization logic.
{'message': 'Hello from Flutter'},
);
}
Expand All @@ -39,7 +39,7 @@ class MainApp extends StatelessWidget {
child: Text('Hello World!'),
),
floatingActionButton: FloatingActionButton(
// SECTION 3: Call `_launchAndroidActivity` somewhere
// SECTION 3: Call `_launchAndroidActivity` somewhere.
onPressed: _launchAndroidActivity,
// SECTION 3: End

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
example_utils:
path: ../../example_utils

flutter:
uses-material-design: true
2 changes: 2 additions & 0 deletions src/_sass/components/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ pre {
border-bottom: 1px solid $flutter-color-grey-500;
font-size: 0.9375rem;
font-weight: 500;
overflow-x: hidden;
text-overflow: ellipsis;
padding: 0.75rem 0.5rem 0.67rem 1rem;
}

Expand Down
Loading
Loading