Skip to content

Instantly share code, notes, and snippets.

View ivanburlakov's full-sized avatar
😃

Ivan Burlakov ivanburlakov

😃
View GitHub Profile
@ivanburlakov
ivanburlakov / main.dart
Created August 8, 2021 12:46
ListTile title takes full width
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@ivanburlakov
ivanburlakov / main.dart
Last active August 7, 2021 16:02
TextField onLongPress
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@ivanburlakov
ivanburlakov / AndroidManifest.xml
Last active July 17, 2021 14:56
Flutter Android Foreground Example
<manifest ...>
// add following line
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application
...
// add following line
<service android:name=".ExampleService" />
</application>
</manifest>