You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
4 years ago
|
import 'package:ansu_ui/ansu_ui.dart';
|
||
4 years ago
|
import 'package:example/codeviewer/code_segments.dart';
|
||
|
import 'package:example/common/code_view.dart';
|
||
4 years ago
|
import 'package:flutter/material.dart';
|
||
4 years ago
|
import 'package:get/get.dart';
|
||
4 years ago
|
|
||
|
class ExampleStringExt extends StatefulWidget {
|
||
|
ExampleStringExt({Key key}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
_ExampleStringExtState createState() => _ExampleStringExtState();
|
||
|
}
|
||
|
|
||
|
class _ExampleStringExtState extends State<ExampleStringExt> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return ASScaffold(
|
||
|
title: 'String Ext',
|
||
4 years ago
|
actions: [
|
||
|
IconButton(
|
||
|
icon: Icon(
|
||
|
Icons.code,
|
||
|
color: Colors.black54,
|
||
|
),
|
||
|
onPressed: () => Get.to(
|
||
|
CodeView(
|
||
|
text: (context) => CodeSegments.stringExt(context),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
],
|
||
4 years ago
|
body: ListView(
|
||
|
children: [
|
||
4 years ago
|
// BEGIN stringExt
|
||
4 years ago
|
ListTile(
|
||
|
leading: Chip(label: Text('.phone')),
|
||
|
title: Text('18888888888'),
|
||
|
subtitle: Text('18888888888'.phone),
|
||
|
),
|
||
4 years ago
|
ListTile(
|
||
|
leading: Chip(label: Text('.securePhone')),
|
||
|
title: Text('18888888888'),
|
||
|
subtitle: Text('18888888888'.securePhone),
|
||
|
),
|
||
4 years ago
|
// END
|
||
4 years ago
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|