|
|
@ -1,6 +1,9 @@
|
|
|
|
import 'package:ansu_ui/ansu_ui.dart';
|
|
|
|
import 'package:ansu_ui/ansu_ui.dart';
|
|
|
|
import 'package:ansu_ui/divider/as_dotted_divider.dart';
|
|
|
|
import 'package:ansu_ui/divider/as_dotted_divider.dart';
|
|
|
|
|
|
|
|
import 'package:example/codeviewer/code_segments.dart';
|
|
|
|
|
|
|
|
import 'package:example/common/code_view.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class ExampleDivider extends StatefulWidget {
|
|
|
|
class ExampleDivider extends StatefulWidget {
|
|
|
|
ExampleDivider({Key? key}) : super(key: key);
|
|
|
|
ExampleDivider({Key? key}) : super(key: key);
|
|
|
@ -14,6 +17,14 @@ class _ExampleDividerState extends State<ExampleDivider> {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ASScaffold(
|
|
|
|
return ASScaffold(
|
|
|
|
title: '分割线',
|
|
|
|
title: '分割线',
|
|
|
|
|
|
|
|
actions: [
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
icon: Icon(Icons.code, color: Colors.black54),
|
|
|
|
|
|
|
|
onPressed: () => Get.to(CodeView(
|
|
|
|
|
|
|
|
text: (context) => CodeSegments.button(context),
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
body: Center(
|
|
|
|
body: Center(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -49,7 +60,6 @@ class _ExampleDividerState extends State<ExampleDivider> {
|
|
|
|
ASDottedDivider.horizontal(
|
|
|
|
ASDottedDivider.horizontal(
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: 100.w,
|
|
|
|
height: 100.w,
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|