Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ChatGPT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
关振斌
ChatGPT
Commits
4b706323
Commit
4b706323
authored
May 22, 2023
by
netyouli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI聊天界面添加多选分享,删除功能
parent
5372aa13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
72 deletions
+0
-72
lib/common/widgets/bottom_animation.dart
lib/common/widgets/bottom_animation.dart
+0
-23
lib/common/widgets/my_checkbox.dart
lib/common/widgets/my_checkbox.dart
+0
-49
No files found.
lib/common/widgets/bottom_animation.dart
deleted
100644 → 0
View file @
5372aa13
import
'package:flutter/src/widgets/framework.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:get/get.dart'
;
class
BottomAnimation
extends
GetView
{
const
BottomAnimation
(
this
.
child
,
this
.
isExpanded
,
{
Key
?
key
}):
super
(
key:
key
);
final
Widget
child
;
final
bool
isExpanded
;
@override
Widget
build
(
BuildContext
context
)
{
// TODO: implement build
return
AnimatedAlign
(
duration:
Duration
(
milliseconds:
300
),
alignment:
isExpanded
?
Alignment
.
bottomCenter
:
Alignment
(
0
,
2
),
child:
Container
(
child:
child
,
),
);
}
}
lib/common/widgets/my_checkbox.dart
deleted
100644 → 0
View file @
5372aa13
import
'package:flutter/material.dart'
;
class
MyCheckbox
extends
StatefulWidget
{
const
MyCheckbox
(
this
.
onChanged
,
{
Key
?
key
}):
super
(
key:
key
);
final
void
Function
(
bool
isChecked
)?
onChanged
;
@override
_MyCheckboxState
createState
()
=>
_MyCheckboxState
(
onChanged
);
}
class
_MyCheckboxState
extends
State
<
MyCheckbox
>
{
_MyCheckboxState
(
this
.
onChanged
):
super
();
bool
_isChecked
=
false
;
final
void
Function
(
bool
isChecked
)?
onChanged
;
@override
Widget
build
(
BuildContext
context
)
{
return
InkWell
(
onTap:
()
{
setState
(()
{
_isChecked
=
!
_isChecked
;
if
(
onChanged
!=
null
)
{
onChanged
!(
_isChecked
);
}
});
},
child:
Container
(
width:
20
,
height:
20
,
decoration:
BoxDecoration
(
color:
_isChecked
?
Colors
.
green
:
Colors
.
grey
[
300
],
border:
Border
.
all
(
color:
_isChecked
?
Colors
.
green
:
Colors
.
grey
[
400
]!,
width:
2
,
),
borderRadius:
BorderRadius
.
circular
(
20
),
),
child:
_isChecked
?
Icon
(
Icons
.
check
,
size:
16
,
color:
Colors
.
white
,
)
:
null
,
),
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment